Skip to content

Cannot use with AOT (angular-cli) #2

@TschlegelCore10

Description

@TschlegelCore10

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions