You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
When adding the value returned from UpgradeAdapter.upgradeNg1Component into the declarations array of NgModule, AoT fails with the error below
Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Ng1Component in /Users/guojian.wu/Downloads/ng2bad-build/src/app/main.ts, resolving symbol TestModule in /Users/guojian.wu/Downloads/ng2bad-build/src/app/main.ts, resolving symbol TestModule in /Users/guojian.wu/Downloads/ng2bad-build/src/app/main.ts
at simplifyInContext (/Users/guojian.wu/Downloads/ng2bad-build/node_modules/@angular/compiler-cli/src/static_reflector.js:473:23)
at StaticReflector.simplify (/Users/guojian.wu/Downloads/ng2bad-build/node_modules/@angular/compiler-cli/src/static_reflector.js:476:22)
at StaticReflector.annotations (/Users/guojian.wu/Downloads/ng2bad-build/node_modules/@angular/compiler-cli/src/static_reflector.js:61:36)
at _loop_1 (/Users/guojian.wu/Downloads/ng2bad-build/node_modules/@angular/compiler-cli/src/codegen.js:53:54)
at CodeGenerator.readFileMetadata (/Users/guojian.wu/Downloads/ng2bad-build/node_modules/@angular/compiler-cli/src/codegen.js:66:13)
at /Users/guojian.wu/Downloads/ng2bad-build/node_modules/@angular/compiler-cli/src/codegen.js:100:74
at Array.map (native)
at CodeGenerator.codegen (/Users/guojian.wu/Downloads/ng2bad-build/node_modules/@angular/compiler-cli/src/codegen.js:100:35)
at codegen (/Users/guojian.wu/Downloads/ng2bad-build/node_modules/@angular/compiler-cli/src/main.js:7:81)
at Object.main (/Users/guojian.wu/Downloads/ng2bad-build/node_modules/@angular/tsc-wrapped/src/main.js:30:16)
Expected/desired behavior
It should compile without error
I'm submitting a ... (check one with "x")
Current behavior
When adding the value returned from UpgradeAdapter.upgradeNg1Component into the declarations array of NgModule, AoT fails with the error below
Expected/desired behavior
It should compile without error
Reproduction of the problem
ng2bad-build.zip
See attached project for error reproduction
npm run tsc (works)
npm run ngc (does not work - throws error from above)
Please tell us about your environment:
Originally reported to a different issue #10789 (comment)
But according to @chuckjaz, the issue is different enough to warrant a new bug report
The text was updated successfully, but these errors were encountered: