Open alexeyrv opened 6 years ago
I came here to ask the same thing... Any updates on this? We're developing a local project, won't be publicly available initially, and we'd like to use stackblitz as a playground area for the developers. So they could run and test the components. The library is not publicly available and we couldn't find how to work with that scenario.
Has anyone figured this out yet? I noticed the question is a tad bit old.
Kind regards,
Just posting to see if there are any updates on this. I want to load some dependencies that are not on npm. 🤒
@Nyalothas the solution I implemented was:
xyz.js
)import { XyzModule } from '../../xyz';
It's working fine. Not ideal, I agree, but it works.
Not necessarily the best solution, but here's an idea.
Hello team. I need some help with StrackBlitz and external javascript libs (current proj is Angular6\TS projects). Cant find any docs or blog posts how to use external dependencies. Here is StackBlitz editorail link to my own fork StackBlitz
I saw you talk about some possibilities how import js. Can you explain how import .js libs from the external deps? Similar links or simple filenames dont work.
Error: Can't find module: https://cdndelivr.net/npm/pdfjs-dist/build/pdf.js (@2.0.489)
Also I try add to src/assets/ files and add it from component.
Error - "Can't find module: //stackblitz.com/tmp/appfiles/assets/pdf (https:)"
If I dont use file extension it tries get .ts and its clear. But how to use js libs I need out of NPM storage? For example my own libs.
Thanks in advance. Alex