feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Make the process of adding third party libs more streamlined for new users

Open lukesmurray opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe.

It is usually possible to add third party libraries to observable but the default method proposed in snippets often fails.

image

Describe the solution you'd like

You already have a solution on observable but I can't imagine it would be easy to find for new users.

Describe alternatives you've considered

If I were a new user to observable and tried installing a third party library and it didn't work I might just give up. As an example I tried installing @gaearon/lag-radar but accidentally typed require(lag-radar). While the module-require-debugger I linked above says this package is not published on npm the default require just fails with a cryptic error message. When I tried require(@gaeron/lag-radar) I got another error message. At that point I would probably give up but it turns out you can require @gaeron/lag-radar using skypack. import('https://cdn.skypack.dev/@gaearon/[email protected]?min'). Would be amazing if some of this could be simplified for users since JS developers rely heavily on third party libs for almost everything.

lukesmurray avatar Mar 18 '22 21:03 lukesmurray

Thanks for this suggestion!

CobusT avatar Mar 18 '22 21:03 CobusT

#176 is related.

abitrolly avatar Dec 24 '22 06:12 abitrolly