• Now all data be ready for publish, We had made our blog alive now. Haha.



  • These days CCP GFW blocked all the IPs from US and when I switch my IP in google Cloud, the disk data cannot be restore again. I have to restart my blog totally, Now the website is still building…



Q: Getting error while using nuxt-class-component – Stack Overflow

Vue PingBook 3 weeks ago (10-23) 11 0

Question

:
I copy pasted the example code from vue-class-component examples directory (https://github.com/nuxt/nuxt.js/tree/dev/examples/vue-class-component) and getting this error with latest 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

Test repo: https://github.com/piyushchauhan2011/nuxt-component . Anything that can be done to fix the problem so that we can use es6 class syntax with vuejs in Nuxt project?

Answer

:
The latest version of Nuxt.js 1.0.0-alpha2 fixed the error.




Copyright from PingBook Blog, If not specified, they are original. This site uses BY-NC-SAProtocol authenticated.
For reprinting, please indicate the link of the original text:Q: Getting error while using nuxt-class-component – Stack Overflow
LIKE (0)
[1725641479@qq.com]
SHARE (0)
PingBook
Author:
We create, We sharing! Tag every value data your sharing
Submit comments
Cancel comments
emoji picture bold strikethrough center italic check in

Hi,you need to provide your name and email adress!

  • Name (Required)
  • Email (Required)
  • Website