question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin

See original GitHub issue

Thank you for an awesome template. I have run into this error with Windows 10, node 7.5.0 and npm 4.1.2. This error is with the boilerplate code unmodified and running with NODE_ENV=production. There is no error with NODE_ENV=testing or development.


ERROR  Failed to compile with 2 errors   

 error  in ./src/App.vue

Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin, refer to https://github.com/webpack/extract-text-webpack-plugin for the usage example
    at Object.module.exports.pitch (C:\iTurbineIO\Projects\vue-webpack\node_modules\extract-text-webpack-plugin\loader.js:27:9)

 @ ./src/App.vue 3:0-335
 @ ./src/main.js
 @ multi ./build/dev-client ./src/main.js

 error  in ./src/components/Hello.vue

Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin, refer to https://github.com/webpack/extract-text-webpack-plugin for the usage example
    at Object.module.exports.pitch (C:\iTurbineIO\Projects\vue-webpack\node_modules\extract-text-webpack-plugin\loader.js:27:9)

 @ ./src/components/Hello.vue 3:0-345
 @ ./src/router/index.js
 @ ./src/main.js
 @ multi ./build/dev-client ./src/main.js

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
helailicommented, Aug 18, 2017

I found out that webpack.prod.conf was not loaded when NODE_ENV === 'production'. I’ve solved it as followed in dev-server.js :

var webpackConfig = process.env.NODE_ENV === 'testing' || 'production'
  ? require('./webpack.prod.conf')
  : require('./webpack.dev.conf')
9reactions
kerf007commented, Mar 28, 2017

Problem fixed for me too: NODE_ENV=development. I added it in ‘dev’ script (for windows): "dev": "cross-env NODE_ENV=development node build/dev-server.js"

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: "extract-text-webpack-plugin" loader is used without ...
Uncaught Error: Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin, ...
Read more >
reactjs - Extract Text Plugin 'loader is used without the ...
Module build failed : Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin. Followed the guidelines from this ...
Read more >
Solution - "extract-text-webpack-plugin" loader is used without ...
Recurring problem in Webpack's extract-text-webpack-plugin package, used to extract CSS (Cascading Style Sheets) references from JavaScript sources and ...
Read more >
Module build failed: Error: "extract-text-webpack-plugin ...
Module build failed : Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin,.
Read more >
使用extract-text-webpack-plugin报错Module build failed
src/components/search/trackList.vue Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found