我正在使用Ionic框架。我升级到离子cli的更高版本,并在运行ionic serve
时收到此错误。
如何解决问题以允许项目再次与ionic serve
或ionic 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)