Ionic无法读取未定义的属性'hasOwnProperty'

时间:2016-11-07 21:55:44

标签: cordova ionic-framework hasownproperty npm-scripts ionic-cli

我正在使用Ionic框架。我升级到离子cli的更高版本,并在运行ionic serve时收到此错误。

如何解决问题以允许项目再次与ionic serveionic build一起投放?

There was an error serving your Ionic application: TypeError: Cannot read property 'hasOwnProperty' of undefined
    at C:\Users\***\AppData\Roaming\npm\node_modules\ionic\lib\utils\npmScripts.js:16:31
    at _fulfilled (C:\Users\***\node_modules\q\q.js:834:54)
    at self.promiseDispatch.done (C:\Users\***\node_modules\q\q.js:863:30)
    at Promise.promise.promiseDispatch (C:\Users\***\node_modules\q\q.js:796:13)
    at C:\Users\***\node_modules\q\q.js:604:44
    at runSingle (C:\Users\***\node_modules\q\q.js:137:13)
    at flush (C:\Users\***\node_modules\q\q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

0 个答案:

没有答案