0
我複製粘貼從vue-class-component
例子目錄(https://github.com/nuxt/nuxt.js/tree/dev/examples/vue-class-component)的示例代碼和收到此錯誤與最新nuxt得到錯誤,同時使用nuxt級組分
Nuxt.js Error:
TypeError: Cannot read property '_init' of undefined
at VueComponent (/Users/piyushchauhan/Documents/testcodes/nuxt-component/node_modules/vue/dist/vue.runtime.common.js:4167:11)
at server-bundle.js:2252:17
at F (~/core-js/library/modules/_export.js:35:0)
at server-bundle.js:2247:22
at Array.map (native)
at Object._callee$ (.nuxt/server.js:53:65)
at tryCatch (~/regenerator-runtime/runtime.js:65:14)
at Generator.invoke [as _invoke] (~/regenerator-runtime/runtime.js:303:0)
at Generator.prototype.(anonymous function) [as next] (~/regenerator-runtime/runtime.js:117:0)
at step (~/babel-runtime/helpers/asyncToGenerator.js:17:0)
at server-bundle.js:1105:13
測試回購:https://github.com/piyushchauhan2011/nuxt-component。任何可以解決問題的方法都可以解決,以便我們可以在Nuxt項目中使用es6類語法和vuejs?