我想在我的离子应用程序中使用https://www.npmjs.com/package/angular2-qrcode。 它使用离子角2.0.0 rc.0由模块'AppModule'导入的意外值'QRCodeModule'
的ionic2应用程序时,我做的离子成为一切完美 然而,当我做一个离子跑我得到
[19:05:49] ngc: Error: Unexpected value 'QRCodeModule' imported by the module 'AppModule'
at D:\jdevcc\git\pr\application\handyou-original\node_modules\@angular\compiler\bundles\compiler.umd.js:13982:37
at Array.forEach (native)
at CompileMetadataResolver.getNgModuleMetadata (D:\jdevcc\git\pr\application\handyou-original\node_modules\@angular\compiler\bundles\compiler.umd.js:13967:46)
at D:\jdevcc\git\pr\application\handyou-original\node_modules\@angular\compiler\bundles\compiler.umd.js:12812:58
at Array.forEach (native)
at OfflineCompiler.analyzeModules (D:\jdevcc\git\pr\application\handyou-original\node_modules\@angular\compiler\bundles\compiler.umd.js:12811:21)
at CodeGenerator.codegen (D:\jdevcc\git\pr\application\handyou-original\node_modules\@angular\compiler-cli\src\codegen.js:105:47)
at codegen (D:\jdevcc\git\pr\application\handyou-original\node_modules\@angular\compiler-cli\src\main.js:7:81)
at Object.main (D:\jdevcc\git\pr\application\handyou-original\node_modules\@angular\tsc-wrapped\src\main.js:30:16)
at Object.<anonymous> (D:\jdevcc\git\pr\application\handyou-original\node_modules\@angular\compiler-cli\src\main.js:14:9)
你也许有一个想法?
有没有办法让ngc编译的完整日志?为了检查之前是否发生了错误。
这里是我的应用程序模块:
...
...
imports: [QRCodeModule, SwingModule
IonicModule.forRoot(MyApp, {
tabsHideOnSubPages : 'true'
})
],
的信息,摇摆模块工作完美:)在我的package.json我有 “angular2-QR码”:“^ 1.0。 4" ,
预先感谢您的想法
有一个愉快的一天:)
你找到了一个解决方案?我有同样的问题。 –
我会把这个补充 – Geoffrey