大佬教程收集整理的这篇文章主要介绍了Angular4错误提示的说明(二),大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
compiler.es5.js:1694 Uncaught Error: Unexpected value 'XxxModule' imported by the module 'AppModule'. Please add a @NgModule Annotation. at SyntaxError (compiler.es5.js:1694) at compiler.es5.js:15398 at Array.forEach (<anonymous>) at CompileMetadataResolver.webpackJsonp.../../../compiler/@angular/compiler.es5.js.CompileMetadataResolver.getNgModuleMetadata (compiler.es5.js:15381) at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._loadModules (compiler.es5.js:26826) at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._compileModuleAndComponents (compiler.es5.js:26799) at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler.compileModuleAsync (compiler.es5.js:26728) at PlatformRef_.webpackJsonp.../../../core/@angular/core.es5.js.PlatformRef_._bootstrapModuleWithZone (core.es5.js:4536) at PlatformRef_.webpackJsonp.../../../core/@angular/core.es5.js.PlatformRef_.bootstrapModule (core.es5.js:4522)
看起来无从着手,好像是编译器的问题。试试-aot参数吧。
ng serve -aot
以上是大佬教程为你收集整理的Angular4错误提示的说明(二)全部内容,希望文章能够帮你解决Angular4错误提示的说明(二)所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。