-
Notifications
You must be signed in to change notification settings - Fork 35
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
module build failed #6
Comments
Hi @harpagon210, did you import Bulma first ? rehgards |
Hi thanks for your quick reply ;) Yes, here is my imports: import 'bulma'
import 'bulma-slider' and my webpack-config {
test: /\.scss$/,
use: [{
loader: "style-loader" // translates CSS into CommonJS
},{
loader: "css-loader" // translates CSS into CommonJS
}, {
loader: "sass-loader" // compiles Sass to CSS
}]
},
{
test: /\.sass$/,
use: [{
loader: "style-loader" // translates CSS into CommonJS
},{
loader: "css-loader" // translates CSS into CommonJS
}, {
loader: "sass-loader" // compiles Sass to CSS
}]
}, thanks |
@Wikiki there is no bulma-slider.sass in the node-modules/bulma-slider folder ;) I installed it via
|
Weird. Can you try with this: @import 'bulma/sass/utilities/_all'
@import 'bulma-slider'
@import 'bulma' |
@Wikiki I have the same error :( my js file: import 'bulma/sass/utilities/_all.sass'
import 'bulma-slider/slider.sass'
import 'bulma/css/bulma.css' |
You need to create a sass file in which you import files: @import '~/bulma'
@import '~/bulma-slider' you can't import sass (or css) files into JS. |
Thanks for your answer, what I did to fix the problem is that I created a sass file like you said. |
Hi,
I have the following error when webpack tries to build my app:
Any idea of what is wrong?
Do I have to import another module?
The text was updated successfully, but these errors were encountered: