My project works perfectly when I run the project via 'Ng Serve or Ng serves --aot', however in production mode (--prod) it happens refresh
相关问题
- Angular RxJS mergeMap types
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- How to update placeholder text in ng2-smart-table?
- How to instantiate Http service in main.ts manuall
- Angular: ngc or tsc?
相关文章
- angular脚手架在ie9+下兼容问题
- angular 前端项目 build 报错 "Cannot find module 'le
- Angular Material Stepper causes mat-formfield to v
- After upgrade to Angular 9 cannot find variable in
- is there any difference between import { Observabl
- Suppress “Circular dependency detected” suppress w
- How can you get current positional information abo
- Angular material table not showing data
Your problem is most likely due to incompatibility between some npm packages. If you use Angular CLI, you should do the following (This is the easiest way I can help based on your provided info):
npm install -g @angular/cli@1.6.2
.Next, in your
package.json
file, ensure that your npm packages have the same versions & semantic versioning i.e.*
,^
or~
as the ones as follows (I got this by generating a project using Angular CLI 1.6.2):Remember to keep any libraries other than the following that you still use!
package.json
is located, remove thenode_modules
folder and runnpm install
.