-
Notifications
You must be signed in to change notification settings - Fork 96
Description
Angular 4
Using angular-cli
I receive errors when running a production AOT build: ng build -prod -aot.
My node_modules folder is located in a directory above /src.
Errors:
`ERROR in ./src/$$_gendir/app/core/app.module.ngfactory.ts
Module not found: Error: Can't resolve 'angular-user-idle/user-idle.config' in
'/path/to/code/src/$$_gendir/app/core'
resolve 'angular-user-idle/user-idle.config' in '/path/to/code/src/$$_gendir/app/core'
Parsed request is a module
using description file: /path/to/code/package.json (relative path: ./src/$$_gendir/app/core)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /path/to/code/package.json (relative path: ./src/$$_gendir/app/core)
resolve as module
/path/to/code/src/$$_gendir/app/core/node_modules doesn't exist or is not a directory
...`