gpt4 book ai didi

angular - Ionic Angular TypeError : architect_1. createBuilder 不是函数

转载 作者:行者123 更新时间:2023-12-01 22:26:22 25 4
gpt4 key购买 nike

当我尝试通过 ionic cordova build android 编译应用程序时,我抛出此错误。我正在使用最新版本的 Angular 和 Ionic 4。我试图更新 Angular@cli、Angular@core 和 @ionic/angular-toolkit

TypeError: architect_1.createBuilder is not a function
at Object.<anonymous> (D:\Apps\Pojazdy\node_modules\@ionic\angular-toolkit\builders\cordova-build\index.js:17:31)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Promise.resolve.then (D:\Apps\Pojazdy\node_modules\@angular\cli\node_modules\@angular-devkit\architect\node\node-modules-architect-host.js:80:61)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
[ERROR] An error occurred while running subprocess ng.```

最佳答案

我也遇到了同样的问题。

我找到了这个链接https://forum.ionicframework.com/t/ionic-4-angular-8/167535/5哪里提到了谷歌驱动器的其他链接:https://docs.google.com/document/d/1QOpQeDifPSg6F9WycDLcbQnpqjN96ew-Ap0_CB7CcCQ/edit

我执行了这个命令,它对我有用:

npm i @angular-devkit/architect@latest @angular-devkit/build-angular@latest @angular-devkit/core@latest @angular-devkit/schematics@latest

谢谢!

关于angular - Ionic Angular TypeError : architect_1. createBuilder 不是函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56835851/

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