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

ERROR in ./node_modules/bulma/css/bulma.css #16

Open
Yolo390 opened this issue Nov 15, 2017 · 5 comments
Open

ERROR in ./node_modules/bulma/css/bulma.css #16

Yolo390 opened this issue Nov 15, 2017 · 5 comments

Comments

@Yolo390
Copy link

Yolo390 commented Nov 15, 2017

`ERROR in ./node_modules/bulma/css/bulma.css
Module parse failed: Unexpected character '@' (2:0)

You may need an appropriate loader to handle this file type.
| /*! bulma.io v0.6.1 | MIT License | github.com/jgthms/bulma */
| @-webkit-keyframes spinAround {
| from {
| -webkit-transform: rotate(0deg);
@ ./app/main.jsx 24:0-30
@ multi ./app/main webpack-hot-middleware/client`

I don't know if the problem comes from Webpack or Bulma...

@kulakowka
Copy link
Owner

you should use css-loader

@code4cake
Copy link

@Bigg-Mike did you solve this issue? I'm having the same issue. Thanks

@diegosanz
Copy link

In your webpack config you need something like that:

module: {
  rules: [{
    test: /\.css$/,
    use: [
      {
        loader: 'css-loader',
        options: { modules: true }
      }
    ]
  }]
}

More info here

@curlynux
Copy link

curlynux commented Dec 1, 2018

have the same error, someone found the solution ?

@di2pro
Copy link

di2pro commented Apr 19, 2020

I solved this problem by removing exclude: /node_modules/ line from the rule for css files without adding the option for CSS modules

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

6 participants