【发布时间】:2018-08-11 08:25:32
【问题描述】:
我不安装 angular 4 width angular-froala-wysiwyg。它通知一个错误“
-
模块的元数据版本不匹配 C:/Users/Thanhtung/Desktop/abitstore/abitstore.vn/node_modules/angular-froala-wysiwyg/index.d.ts, 找到版本 4,预期为 3,解析符号 AppModule C:/Users/Thanhtung/Desktop/abitstore/abitstore.vn/src/app/app.module.ts, 解析符号 AppModule 中 C:/Users/Thanhtung/Desktop/abitstore/abitstore.vn/src/app/app.module.ts, 解析符号 AppModule 中 C:/Users/Thanhtung/Desktop/abitstore/abitstore.vn/src/app/app.module.ts 在 syntaxError (C:\Users\Thanhtung\Desktop\abitstore\abitstore.vn\node_modules\@angular\compiler\bundles\compiler.umd.js:1729:34) 在 simpleInContext (C:\Users\Thanhtung\Desktop\abitstore\abitstore.vn\node_modules\@angular\compiler\bundles\compiler.umd.js:24979:23) 在 StaticReflector.simplify (C:\Users\Thanhtung\Desktop\abitstore\abitstore.vn\node_modules\@angular\compiler\bundles\compiler.umd.js:24991:13) 在 StaticReflector.annotations (C:\Users\Thanhtung\Desktop\abitstore\abitstore.vn\node_modules\@angular\compiler\bundles\compiler.umd.js:24418:41) 在 _getNgModuleMetadata (C:\Users\Thanhtung\Desktop\abitstore\abitstore.vn\node_modules\@angular\compiler-cli\src\ngtools_impl.js:138:31) 在 _extractLazyRoutesFromStaticModule (C:\Users\Thanhtung\Desktop\abitstore\abitstore.vn\node_modules\@angular\compiler-cli\src\ngtools_impl.js:109:26) 在 Object.listLazyRoutesOfModule (C:\Users\Thanhtung\Desktop\abitstore\abitstore.vn\node_modules\@angular\compiler-cli\src\ngtools_impl.js:53:22) 在 Function.NgTools_InternalApi_NG_2.listLazyRoutes (C:\Users\Thanhtung\Desktop\abitstore\abitstore.vn\node_modules\@angular\compiler-cli\src\ngtools_api.js:91:39) 在 AotPlugin._getLazyRoutesFromNgtools (C:\Users\Thanhtung\Desktop\abitstore\abitstore.vn\node_modules\@ngtools\webpack\src\plugin.js:241:66) 在 _donePromise.Promise.resolve.then.then.then.then.then (C:\Users\Thanhtung\Desktop\abitstore\abitstore.vn\node_modules\@ngtools\webpack\src\plugin.js:495:24) 在
"。谁能帮帮我?
【问题讨论】:
-
尝试安装 angular4 而不是 angular5
-
我不使用 angular 5,因为我的项目使用主题 adminlte.io 只使用 angular 4
-
哦,它可能是 angular-froala-wysiwyg 模块 - 将其回滚到依赖 angular4 的版本
-
在文档中找不到依赖于 Angular 4 的指令安装版本,我搜索了 google 却找不到。你能为我说一个明确的解决方案吗
标签: angular