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.

Can't serve due to uglifyjs-webpack-plugin 1.1.7 release

See original GitHub issue

Versions

Angular CLI: 1.6.5
Node: 8.7.0
OS: darwin x64
Angular: 5.2.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cdk: 2.0.0-beta.12
@angular/cli: 1.6.5
@angular-devkit/build-optimizer: 0.0.41
@angular-devkit/core: 0.0.28
@angular-devkit/schematics: 0.0.51
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.5
@schematics/angular: 0.1.16
typescript: 2.5.3
webpack: 3.10.0

Repro steps

  • ng new project
  • ng serve
  • npm run start - does the same thing

Observed behavior

> npm run start

> client1@0.0.0 start /u/admosity/git/_personal/lerna-repo/packages/client1
> ng serve

Cannot find module 'uglifyjs-webpack-plugin'
Error: Cannot find module 'uglifyjs-webpack-plugin'
    at Function.Module._resolveFilename (module.js:527:15)
    at Function.Module._load (module.js:476:23)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/u/admosity/git/_personal/lerna-repo/packages/client1/node_modules/@angular/cli/models/webpack-configs/production.js:13:24)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/u/admosity/git/_personal/lerna-repo/packages/client1/node_modules/@angular/cli/models/webpack-configs/index.js:9:10)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client1@0.0.0 start: `ng serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client1@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /u/admosity/.npm/_logs/2018-01-29T19_50_52_816Z-debug.log

Desired behavior

Project should run

Mention any other details that might be useful (optional)

webpack-contrib/uglifyjs-webpack-plugin#217

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:27
  • Comments:22 (3 by maintainers)

github_iconTop GitHub Comments

21reactions
hanslcommented, Jan 29, 2018

After escalation and investigation, the webpack-contrib team released a new version 1.1.8 with everything proper in it. I’m going to close this issue as fixed, but we’ll look into fixing our dependency versions (and why it wasn’t fixed inthe first place). Thanks for your patience.

20reactions
EricWaffordcommented, Jan 29, 2018

@seekheart is correct, in the cli package json it’s pulling in “uglifyjs-webpack-plugin”: “^1.1.5”, and the issue is with this package’s recent 1.1.7 release.

as a temporary workaround, npm i --save-dev uglifyjs-webpack-plugin@1.1.6 in the local project does seem to fix the issue. Not the best solution, but it got ng serve to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UglifyJs Webpack Plugin fails on production - Stack Overflow
so I installed the latest version of UglifyJs Plugin (2.0.1) and I believe I imported it correctly. but now when I do npm...
Read more >
uglifyjs-webpack-plugin - npm
UglifyJS plugin for webpack. Latest version: 2.2.0, last published: 3 years ago. Start using uglifyjs-webpack-plugin in your project by ...
Read more >
webpack-parallel-uglify-plugin - npm package - Snyk
A webpack plugin to run uglifyjs in parallel. For more information about how to use this package see README. Latest version published 2...
Read more >
Open Source Used In CloudCenter SA 5.2.4 - Cisco
This document contains licenses and notices for open source software used in this product. With respect to the free/open source software listed in...
Read more >
uglifyjs-webpack-plugin - npm.io
Check Uglifyjs-webpack-plugin 2.2.0 package - Last release 2.2.0 with MIT licence at our NPM packages aggregator and search engine.
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