-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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: Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin, #997
Comments
you probably have NODE_ENV set to 'development' in your terminal, which breaks the production build process, presumably. Can you check that out? |
@LinusBorg I use windows git's bash terminal in vscode and that seems to be it. I used command prompt and it built like normal. I'll keep looking. It's a fresh install on windows and git bash. |
Marking this as complete. Using command prompt instead of git bash fixed this. |
Isolated this down to a vscode issue with their integrated terminal. Not related to this project but still looking into it. |
@CalebKester did you ever get any further with this? i'm experiencing the same problem, but rather than the integrated vscode terminal i'm using PowerShell 5.1. swapping to Command Prompt, of course, magically fixes the issue. @LinusBorg near as i can tell NODE_ENV is not set in either PowerShell or Command Prompt, yet i get a successful build in Command Prompt. is PowerShell not a supported platform for vue-cli 3? |
Nope I didn't. I gave up and just built it a different way. What computer are you on? I'm windows 10 surface book 2. I'll reopen this and we can work to figure it out! |
I'm on an HP desktop running Windows 10 Enterprise with vue-cli 3.0.0-beta 6 installed globally via npm. In a normal, non-admin PowerShell window I can reproduce the failure by: If I do nothing but swap from a PowerShell window to a Command Prompt window npm run build succeeds. I've tried running the PowerShell prompt with both the "Run as Administrator" option and normally neither of which provided any change in behaviour. I've just double checked in the System Properties UI and verified that NODE_ENV is not defined in either the user or system environment variables. I'm at a loss. This feels like vue-cli-service or one of its dependencies not supporting PowerShell properly. |
Thanks! Command Prompt as Admin worked. |
Closing as there is a workaround and we will be moving away from extract-text-webpack-plugin when we upgrade to webpack 4. |
Version
3.0.0-beta.6
Steps to reproduce
What is expected?
Project to build
What is actually happening?
The text was updated successfully, but these errors were encountered: