-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
Error: Can't find stylesheet to import #218
Comments
Are you including the 'node_modules' directory in your Sass includes? I'm not sure what else it could be. Can you post your Rollup config file? |
I have included the node_modules in sass includes. Here is the rollup config: The error was absent before the revamping of SMUI
|
Ah. If you've updated to the latest SMUI, v3, it looks like your config needs to be updated. Likely your theme file as well. I can see you're not using Sapper, but the instructions in the readme for Sapper should help you update the For the |
Basically the new way is to extract the SCSS with PostCSS into a file called 'smui.css'. Then include this file in your HTML. That way you don't have a flash of unstyled content anymore. |
Hi, I managed to get it working by a hard reset of the node_modules by deleting it and re-installing it. What I did:
I still do not know what was the exact reason, maybe a migration error. But I did not encounter the error again. Seems to be working perfectly now. Thanks!. Edit 1: Added the exact steps I took to get rid of the issue. |
Getting this error when trying to do ~/src/svelte/svelte-material-ui/site$ npm i
npm ERR! code 65
npm ERR! path /home/ile/src/svelte/svelte-material-ui/packages/banner
npm ERR! command failed
npm ERR! command sh -c sass --no-source-map -I node_modules _style.scss bare.css
npm ERR! Error: Can't find stylesheet to import.
npm ERR! ╷
npm ERR! 1 │ @use '@material/banner/styles';
npm ERR! │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
npm ERR! ╵
npm ERR! _style.scss 1:1 root stylesheet |
How do I fix this issue when I'm using sveltekit? |
You shouldn't run |
Error while trying to use @smui/top-app-bar
Code:
Error:
I have also installed @material/typography and @feature-targeting but still the error persists.
The text was updated successfully, but these errors were encountered: