Angular CLI: 1.5.4: Cannot find module 'copy-webpack-plugin'
See original GitHub issueVersions
Angular CLI: 1.5.4
Node: 8.9.1
OS: darwin x64
Angular: 5.0.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
@angular/cli: 1.5.4
@angular-devkit/build-optimizer: 0.0.33
@angular-devkit/core: 0.0.21
@angular-devkit/schematics: 0.0.37
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.4
@schematics/angular: 0.1.7
typescript: 2.4.2
webpack: 3.8.1
Repro steps
ng new app-test --style=scss --routing=true --skip-git --skip-tests --skip-git --view-encapsulation=push
cd app-test
ng build
Observed behavior
Cannot find module 'copy-webpack-plugin'
Error: Cannot find module 'copy-webpack-plugin'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/***/Developer/co/app-test/node_modules/@angular/cli/models/webpack-configs/common.js:5:27)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/***/Developer/co/app-test/node_modules/@angular/cli/models/webpack-configs/index.js:7:10)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
Desired behavior
Should not fail.
Mention any other details that might be useful (optional)
npm install --save-dev copy-webpack-plugin
works
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Angular 6: Cannot find module '@angular/cli/plugins/webpack'
I went for this solution using the CopyWebpackPlugin instead const CopyWebpackPlugin = require('copy-webpack-plugin'); plugins.push(new ...
Read more >angular/angular-cli - Gitter
I'm having issues with the protractor tests that are set up with a new cli build. I can't seem to get the ---watch...
Read more >Workflow Suite Offer of Source for Open Source Software
You may have a Poly system or device that contains software from the open source community that must be licensed under the specific...
Read more >www.sing-group.org/dt/gitlab/mrjato/daaexample/com...
+ +## Further help + +To get more help on the Angular CLI use `ng help` or go check ... "5.0.2", + "clean-css":...
Read more >npm run dev is showing error on existing Laravel Project
Error [ERR_REQUIRE_ESM]: require() of ES Module ... Then I get mix.options is not a function. ... Webpack.mix does not copy fonts, manually copy...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@osahner feels like, it was already fixed : https://github.com/webpack-contrib/copy-webpack-plugin/issues/172 But, you can fix it locally, if you add
"copy-webpack-plugin": "4.2.0"
to your devDependenciesThis issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.