Skip to content

Error when building with webpack in angular-cli project #46

Closed
@hzahradnik

Description

@hzahradnik

When using jsnlog in an Angular project (generated with @angular/cli 1.2.6) building for production and ahead-of-time (ng build --prod --aot), the build process can't resolve the module.

ERROR in ./src/$$_gendir/app/app.module.ngfactory.ts 
Module not found: Error: Can't resolve 'jsnlog/Definitions/jl' in 'C:\Users\Name\Code\JSNLogWebpack\src\$$_gendir\app'
 @ ./src/$$_gendir/app/app.module.ngfactory.ts 13:0-44
 @ ./src/main.ts
 @ multi ./src/main.ts

Building with ng build is completing without an error.

I generated a sample project: https://github.com/hzahradnik/JSNLogWebpack

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