carbon-components-vue icon indicating copy to clipboard operation
carbon-components-vue copied to clipboard

Uncaught TypeError: Cannot read properties of undefined (reading '_c')

Open RekiDunois opened this issue 3 years ago • 1 comments
trafficstars

Summary

I am using vue 3.0 and got this error when going through the Vue Tutorial, and I found that the tutorial is using vue 2.

but I found that the storybook is using @carbon/vue with vue 3, I just don't know how to do it.

Is there any way to use @carbon/vue in vue 3 project?

Relevant information

dependencies info in package.json

  "dependencies": {
    "@carbon/icons-vue": "^10.44.0",
    "@carbon/type": "^10.38.0",
    "@carbon/vue": "^2.40.0",
    "@types/carbon-components": "^10.27.1",
    "carbon-components": "^10.49.0",
    "core-js": "^3.6.5",
    "sass": "^1.44.0",
    "sass-loader": "10",
    "vue": "^3.0.0",
    "vue-router": "4"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "@vue/compiler-sfc": "^3.0.0",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^7.0.0"
  },

RekiDunois avatar Dec 08 '21 04:12 RekiDunois

Not sure @RekiDunois. A start has been made on a Vue 3 implementation but it's nowhere near complete https://github.com/carbon-design-system/carbon-components-vue/tree/main/packages/v3

As Vue 3 is not currently a priority for the contributors the implementation is somewhat stalled.

lee-chase avatar Dec 09 '21 12:12 lee-chase