-
-
Notifications
You must be signed in to change notification settings - Fork 609
Error load CSS, Module build failed: Unknown word (5:1) #352
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
Comments
Same here |
i don't know why it happened , but i found a solution |
Same here |
I fixed it by remove |
Same here |
same. webpack the most shitty software that I ever seen. It's working by magic and nobody know how to fix it |
I had the same issue. I think in generally this error happens when the file is compiled by the css loader for more than once. Check your config to see if there are duplicated css loaders. |
@mondaychen is right. You have probably got more than one loader config containing Guess the only fix is making sure there is no intersection. |
I saw similar things here #197 |
same here ): |
same here |
@LeoMartinDev @zhyc9de @harwinvoid @yinshipeng @Jacke @rafaelboschini @fengyongze you guys all using VueJS ? If then please use |
@michael-ciniawsky |
how do you fix the Bs |
remove this{ test: /.css$/, loader: 'style!css' } has no error,but css file can't effect this website |
@afrianjunior It worked for me after I changed the order of loaders from |
@vikashpisces thanks guys! it works fine for me after doing it as you said |
guys how I know if I have a duplicated loader? |
same here But I solve this shit with using |
None of the above work. I'm using Angular 5 and have ejected the project from the cli so that I can modify the webpack config. Here's the entry section:
and here's the module definition:
I've also tried this:
They all produce the same error. |
same here.how to solve??? I cant find the answer. |
I had this same problem as well as one with scss and sass loader... By default the full npm vue app install is loading css and sass for you. I left only the rule of style-loader on the regex of css and it's perfect! |
@atreyhazelhispanic Could you share some example code for how you solved this? |
Try install a low version loader |
same here,因为要先加载css-loader,然后才加载style-loader,so must write like this : loader='style-loader!css-loader', after 2.0,must add 后缀,-loader。 |
oh! your english is very well👏 |
im trying load css with webpack, but fail to load, message error :
in ./~/css-loader!./~/style-loader!./~/css-loader!./semantic/dist/semantic.css Module build failed: Unknown word (5:1)
style-loader and css-loader 2 does not work?
but my webpack.base.conf.js :
{ test: /\.css$/, loader: 'style!css' }
What should I do? to solve these
im use vue-cli witk webpack template.
thanks before!
The text was updated successfully, but these errors were encountered: