Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package "abstracts/functions" not found #7

Open
fabiohvp opened this issue Feb 4, 2021 · 3 comments
Open

Package "abstracts/functions" not found #7

fabiohvp opened this issue Feb 4, 2021 · 3 comments

Comments

@fabiohvp
Copy link

fabiohvp commented Feb 4, 2021

I am using https://github.com/mranenko/angular10-todo to test your plugin and I couldn't make it run using "snowpack dev" or "npx ngsnow", I got the following error:

UnhandledPromiseRejectionWarning: Error: Package "abstracts/functions" not found. Have you installed it

This project is not mine, it uses scss and runs fine when using "ng serve"

@SilverMira
Copy link
Owner

Hello, I believe it's because of these lines, probably prepending ./ to your import path will resolve the issue. Snowpack tries to resolve them as npm packages, but in your case it's a relative path.

https://github.com/mranenko/angular10-todo/blob/8a8869b63ad80d6717cb86872aa51697a865258b/src/assets/styles/app.scss#L1-L13

@fabiohvp
Copy link
Author

fabiohvp commented Feb 4, 2021

prepending ./ fixed that error but when I try to run "npx ngsnow" or "snowpack dev" I still got error relationed to css, probably something with this project.

[snowpack] [404] /assets/styles/app.css
✘ D:\Projetos\VisualCode\Angular\todolist1\src\assets\styles\app.css

@SilverMira
Copy link
Owner

Hello, looks like /assets/styles/app.css originates from /src/assets/styles/app.scss, can you confirm that @snowpack/plugin-sass is installed and included in snowpack.config.js?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants