Angular常见错误

GET / or compiler error can't resolve all parameters for ApplicationModule: (?).
Just follow these simple steps :
 
1 Install core-js modeule.
npm i core-js
 
2 In the polyfills.ts file add the import statement
import 'core-js/es7/reflect';
 
3 In main.ts file add the import statements
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
 
4 check tsconfig
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
 
Angular Custom Webpack
 
 
posted @ 2022-07-09 16:34  内心澎湃的水晶侠  阅读(49)  评论(0编辑  收藏  举报