Well in StackBlitz says "Can't find package: src ". I've read the questions from here and I've been trying the next things:
Can't find packages in stackblitz, even though it is present in npm website. How to install then?
How to downgrade the dependencies for npm packages in StackBlitz?
They doesn't work in my case cos when i type "src" says "dependencies installed" but it comes "Can't find..." again. I tried to delete and reinstall too. Also i tried to change absolute paths to relative.
"Using absolute paths for Typescript import statements causes project to give an error. It works fine in VS Code locally, but not on Stackblitz." (from google).
So I think its not a duplicate question
https://stackblitz.com/github/NachoBFL/ScientificApp?file=src%2Fapp%2Fapp-routing.module.ts
Hey I had the same problem when i was importing from github. The problem turned out to be... my IDE :) please make sure you do not have any import paths that start with "/src/app" and replace it with relative paths instead. Then one by one you will fix it and your Stackblitz will work.
The problem for me was that when I was coding, I used Stackblitz's autoimport, and it imported the library slightly wrong. In my case it did
import { TheClass } from "@theauthor/libname/lib";
instead of just
import { TheClass } from "@theauthor/libname";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With