无法启动Ionic获得“ Object(..)不是函数”

时间:2019-12-18 11:12:34

标签: angular ionic-framework ionic3

我刚刚克隆了一个带有Ionic代码的仓库,安装了ionic 3,安装了npm并使用ionic serve -c运行了该应用程序。这是我尝试在浏览器上访问应用程序时显示的错误。

TypeError: Object(...) is not a function
    at http://localhost:8100/build/vendor.js:59675:108
    at Object.<anonymous> (http://localhost:8100/build/vendor.js:59681:2)
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at Object.596 (http://localhost:8100/build/main.js:9282:68)
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at Object.591 (http://localhost:8100/build/main.js:9265:70)
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at webpackJsonpCallback (http://localhost:8100/build/vendor.js:26:23)
    at http://localhost:8100/build/main.js:1:1



Ionic Framework: 3.9.2
Ionic App Scripts: 3.2.0
Angular Core: 5.0.1
Angular Compiler CLI: 5.0.1
Node: 11.2.0
OS Platform: Linux 5.3
Navigator Platform: Linux x86_64
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36

1 个答案:

答案 0 :(得分:0)

我努力使它工作。 agm / core的版本有问题

我已将版本更改为“ @ agm / core”:“ ^ 1.0.0-beta.7”。以前的版本是“ @ agm / core”:“ ^ 1.0.0-beta.3”