angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Getting a bunch of Module not found errors after upgrading project from cli 1.6.1 to 1.7.0-rc.0

Open abeymg opened this issue 8 years ago • 3 comments

Versions

Angular CLI: 1.7.0-rc.0
Node: 6.9.0
OS: darwin x64
Angular: 5.2.4
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

@angular/cdk: 5.2.0
@angular/cli: 1.7.0-rc.0
@angular/flex-layout: 2.0.0-beta.12
@angular/material: 5.2.0
@angular-devkit/build-optimizer: 0.3.1
@angular-devkit/core: 0.3.1
@angular-devkit/schematics: 0.0.34
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.10.0-rc.0
typescript: 2.5.3
webpack: 3.10.0

Repro steps

  • Step 1 Upgrade an angular project using cli version 1.6.1 to cli 1.7.0-rc.0. App uses the pubnub-angular2 lib v 1.3.0 (https://www.npmjs.com/package/pubnub-angular2)

  • Step 2 ng serve the app OR alternatively ng test any specs that make use the pubnub angular service.

Observed behavior

Getting a bunch of Module not found error e.g.

ERROR in ./node_modules/pac-proxy-agent/node_modules/socks-proxy-agent/index.js
Module not found: Error: Can't resolve 'dns' in '/Users/ag/proj/node_modules/pac-proxy-agent/node_modules/socks-proxy-agent'
ERROR in ./node_modules/pac-resolver/dnsResolve.js
Module not found: Error: Can't resolve 'dns' in '/Users/ag/proj/node_modules/pac-resolver'
ERROR in ./node_modules/pac-resolver/isInNet.js
Module not found: Error: Can't resolve 'dns' in '/Users/ag/proj/node_modules/pac-resolver'
ERROR in ./node_modules/pac-resolver/isResolvable.js
Module not found: Error: Can't resolve 'dns' in '/Users/ag/proj/node_modules/pac-resolver'
ERROR in ./node_modules/socks-proxy-agent/socks-proxy-agent.js
Module not found: Error: Can't resolve 'dns' in '/Users/ag/proj/node_modules/socks-proxy-agent'

Desired behavior

Should not throw module not found errors.

Mention any other details that might be useful (optional)

I realize this may be an issue with the library, but its unclear to me why a new cli version would affect this.

abeymg avatar Feb 09 '18 03:02 abeymg

Is this fix included in the 1.7.0 release published to npm?

abeymg avatar Feb 20 '18 23:02 abeymg

I just updated to cli 6.0.0-beta.3 and can confirm that this is not an issue anymore.

abeymg avatar Feb 26 '18 23:02 abeymg

This 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.