Closed

Description
OS
Microsoft Windows [Version 10.0.14393]
Versions
angular-cli: 1.0.0-beta.22-1
node: 6.6.0
os: win32 x64
Repro steps
- ng new testApp
- go to "app.module.ts".
- add "import { COMPILER_PROVIDERS } from '@angular/compiler';" in topp.
- and add "COMPILER_PROVIDERS" as a provider.
- and finally "ng server"
The log given by the failure.
C:\Users\johan\Desktop\TestProj\src\app>ng server
** NG Live Development Server is running on http://localhost:4200. **
10% building modules 2/2 modules 0 activeError: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 54:17 in the original .ts file), resolving symbol COMPILER_PROVIDERS in C:/Users/johan/Desktop/TestProj/node_modules/@angular/compiler/src/compiler.d.ts, resolving symbol AppModule in C:/Users/johan/Desktop/TestProj/src/app/app.module.ts, resolving symbol AppModule in C:/Users/johan/Desktop/TestProj/src/app/app.module.ts
at positionalError (C:\Users\johan\Desktop\TestProj\node_modules\@angular\compiler-cli\src\static_reflector.js:595:18)
at simplifyInContext (C:\Users\johan\Desktop\TestProj\node_modules\@angular\compiler-cli\src\static_reflector.js:473:27)
at StaticReflector.simplify (C:\Users\johan\Desktop\TestProj\node_modules\@angular\compiler-cli\src\static_reflector.js:478:22)
at StaticReflector.annotations (C:\Users\johan\Desktop\TestProj\node_modules\@angular\compiler-cli\src\static_reflector.js:60:36)
at AotPlugin.getNgModuleMetadata (C:\Users\johan\Desktop\TestProj\node_modules\@ngtools\webpack\src\plugin.js:330:41)
at AotPlugin._processNgModule (C:\Users\johan\Desktop\TestProj\node_modules\@ngtools\webpack\src\plugin.js:271:42)
at C:\Users\johan\Desktop\TestProj\node_modules\@ngtools\webpack\src\plugin.js:242:39
at process._tickCallback (internal/process/next_tick.js:103:7)
70% building modules 679/679 modules 0 active
Mention any other details that might be useful.
you can get around the problem by commenting "providers: [COMPILER PROVIDERS],".
save and run ng server and then uncomment the line. this complis but the problem recurs if you restart ng server.
Metadata
Metadata
Assignees
Labels
No labels