gpt4 book ai didi

angular - ionic 3 : deployment typescript error

转载 作者:搜寻专家 更新时间:2023-10-30 21:49:42 25 4
gpt4 key购买 nike

我完成了我正在开发的应用程序,它可以在 ionic serve 上正常运行,但是在编译时我遇到了这个问题,非常感谢任何帮助。

[15:40:08]  typescript error 
Type ResultPage in C:/Users/Omar/Desktop/InfoKing/src/pages/result/result.ts is part of the declarations of
2 modules: AppModule in C:/Users/Omar/Desktop/InfoKing/src/app/app.module.ts and ResultPageModule in
C:/Users/Omar/Desktop/InfoKing/src/pages/result/result.module.ts! Please consider moving ResultPage in
C:/Users/Omar/Desktop/InfoKing/src/pages/result/result.ts to a higher module that imports AppModule in
C:/Users/Omar/Desktop/InfoKing/src/app/app.module.ts and ResultPageModule in
C:/Users/Omar/Desktop/InfoKing/src/pages/result/result.module.ts. You can also create a new NgModule that
exports and includes ResultPage in C:/Users/Omar/Desktop/InfoKing/src/pages/result/result.ts then import
that NgModule in AppModule in C:/Users/Omar/Desktop/InfoKing/src/app/app.module.ts and ResultPageModule in
C:/Users/Omar/Desktop/InfoKing/src/pages/result/result.module.ts.



Error: The Angular AoT build failed. See the issues above
at C:\Users\Omar\Desktop\InfoKing\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:237:55
at step (C:\Users\Omar\Desktop\InfoKing\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:32:23)
at Object.next (C:\Users\Omar\Desktop\InfoKing\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:13:53)
at fulfilled (C:\Users\Omar\Desktop\InfoKing\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:4:58)
at <anonymous>

最佳答案

删除result.module.ts,从result.ts文件中删除@IonicPage,再次运行希望对你有用

关于angular - ionic 3 : deployment typescript error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47675833/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com