Could not resolve module @angular/core
dmitrysteblyuk opened this issue · 0 comments
dmitrysteblyuk commented
After git clone and npm install (I do not make any changes in the project) when I run yarn run build
I've got this error:
yarn run v1.1.0
$ ngc -p src && yarn run closure && ./size_report.sh
Error: Error: Could not resolve module @angular/core
at StaticSymbolResolver.getSymbolByModule (C:\Workspace\closure-demo\node_modules\@angular\compiler\bundles\compiler.umd.js:31256:30)
at StaticReflector.findDeclaration (C:\Workspace\closure-demo\node_modules\@angular\compiler\bundles\compiler.umd.js:29723:63)
at StaticReflector.initializeConversionMap (C:\Workspace\closure-demo\node_modules\@angular\compiler\bundles\compiler.umd.js:29988:36)
at new StaticReflector (C:\Workspace\closure-demo\node_modules\@angular\compiler\bundles\compiler.umd.js:29673:14)
at Object.createAotCompiler (C:\Workspace\closure-demo\node_modules\@angular\compiler\bundles\compiler.umd.js:31496:44)
at AngularCompilerProgram._createProgramWithBasicStubs (C:\Workspace\closure-demo\node_modules\@angular\compiler-cli\src\transformers\program.js:304:37)
at AngularCompilerProgram.initSync (C:\Workspace\closure-demo\node_modules\@angular\compiler-cli\src\transformers\program.js:278:23)
at AngularCompilerProgram.get [as tsProgram] (C:\Workspace\closure-demo\node_modules\@angular\compiler-cli\src\transformers\program.js:237:22)
at AngularCompilerProgram.getTsOptionDiagnostics (C:\Workspace\closure-demo\node_modules\@angular\compiler-cli\src\transformers\program.js:75:20)
at defaultGatherDiagnostics (C:\Workspace\closure-demo\node_modules\@angular\compiler-cli\src\perform_compile.js:170:34)
Environment: Windows 10, npm 3.10.10, node 6.11.4