-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Importing styles from node_modules fails in scss files #291
Comments
@daychongyang thanks for quick fix ❤️, I really appreciate that 🙇 . PS. Is there a way for me to test it or do I need to wait for official release to NPM? I've tried to switch to |
New version ( |
If you want to keep up with the upstream project at all times, you can clone the vite project from github to your local workspace and execute the following commands in sequence: yarn
yarn dev
yarn link Then go to your own project and execute |
With this fix, I still need to know where the scss file is located within the node package, which isn't necessarily part of the package's public interface and hence might change without warning. In contrast, with |
@daychongyang |
Describe the bug
When trying to import sass based library (i.e.
bootstrap
) in.scss
file, Vite throws error.Reproduction
npm install -D sass
npm install -S bootstrap
styles.scss
with:@import 'bootstrap/scss/bootstrap';
styles.scss
tomain.js
file:import './styles/index.scss'
System Info
vite
version: 0.17.2vue
version (fromyarn.lock
orpackage-lock.json
): 3.0.0-beta.14@vue/compiler-sfc
version: 3.0.0-beta.14Logs (Optional if provided reproduction)
The text was updated successfully, but these errors were encountered: