Skip to content

Throwing error in AoT production build #58

@shreekantha

Description

@shreekantha

I am using Angular CLI, when I try to build app with command "ng build --prod --aot", it started throwing error.

ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator',
function calls are not supported. Consider replacing the function or lambda with a reference to a
n exported function, resolving symbol Injectable in /home/spaneos/Videos/ng2aot/node_modules/angu
lar-2-dropdown-multiselect/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol Opaq
ueToken
in /home/spaneos/Videos/ng2aot/node_modules/angular-2-dropdown-multiselect/node_modules/@
angular/core/src/di/opaque_token.d.ts, resolving symbol OpaqueToken
in /home/spaneos/Videos/ng2ao
t/node_modules/angular-2-dropdown-multiselect/node_modules/@angular/core/src/di/opaque_token.d.ts

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/home/spaneos/V
ideos/ng2aot/src'
@ ./src/main.ts 4:0-74
@ multi main

Please help me on this. We are going to production in next week.

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