如果在Angular项目名称中加上#符号,则无法构建并崩溃
如果在发出”ng build”命令的目录的完整路径中包含有”# “的话,会在构建过程中出现错误。
请小心注意!
ERROR in Error: Could not resolve module C:/Users/hogegege/
at StaticSymbolResolver.getSymbolByModule (C:\Users\hogegege\#120\hoge\node_modules\@angular\compiler\bundles\compiler.umd.js:29758:30)
at StaticReflector.resolveExternalReference (C:\Users\hogegege\#120\hoge\node_modules\@angular\compiler\bundles\compiler.umd.js:31595:62)
at parseLazyRoute (C:\Users\hogegege\#120\hoge\node_modules\@angular\compiler\bundles\compiler.umd.js:29043:55)
at AotCompiler.listLazyRoutes (C:\Users\hogegege\#120\hoge\node_modules\@angular\compiler\bundles\compiler.umd.js:31135:43)
at AngularCompilerProgram.listLazyRoutes (C:\Users\hogegege\#120\hoge\node_modules\@angular\compiler-cli\src\transformers\program.js:156:30)
at Function.NgTools_InternalApi_NG_2.listLazyRoutes (C:\Users\hogegege\#120\hoge\node_modules\@angular\compiler-cli\src\ngtools_api.js:44:36)
at AngularCompilerPlugin._getLazyRoutesFromNgtools (C:\Users\hogegege\#120\hoge\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:248:66)
at Promise.resolve.then.then (C:\Users\hogegege\#120\hoge\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:565:50)
at <anonymous>