-
I useed npm install @webpixels/css@latest bootstrap@latest --save-dev and after this imported this module to my scss file @import '@webpixels/css'; |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
When I change import path from @import 'bootstrap/scss/functions'; to @import '~bootstrap/scss/functions'; in all files, it's work |
Beta Was this translation helpful? Give feedback.
-
Are you using Webpack to compile the Sass files? Make sure you add |
Beta Was this translation helpful? Give feedback.
-
@webpixels @alexisenache What dependencies I had in package.json before install @webpixels/css:
What I did next, I removed Bootstrap 4 and installed @webpixels/css and Bootstrap 5 latest versions npm install @webpixels/css@latest bootstrap@latest --save-dev Then I installed sass, sass-loader, postcss-loader, css-loader npm i sass sass-loader postcss-loader css-loader Then I removed my node_modules and package-lock.json and again install all modules npm i Then imported @webpixels/css in my main styles file
Then when I try to run my project I got this error After that, I tried added chainWebpack in my vue.config.js
My dependecies list in package,js after installed modules
|
Beta Was this translation helpful? Give feedback.
-
Seem like problem with sass-loader |
Beta Was this translation helpful? Give feedback.
-
That's what I thought. Sass made some core changes that might affect the compiling process. Make sure you use the latest sass and sass-loader and try again. |
Beta Was this translation helpful? Give feedback.
-
Also, you should install sass instead of node-sass. Even though Bootstrap still supports that, our CSS framework doesn't: "sass": "^1.35.1",
"sass-loader": "^8.0.2", |
Beta Was this translation helpful? Give feedback.
-
@alexisenache removed node-sass and install sass and sass-loader latest version
|
Beta Was this translation helpful? Give feedback.
-
@alexisenache I downgrade sass-loader to 10 version, and it's work
|
Beta Was this translation helpful? Give feedback.
-
Great. I will make some tests and see what causes the issue anyway 👍 |
Beta Was this translation helpful? Give feedback.
@alexisenache I downgrade sass-loader to 10 version, and it's work