tvjsx / trading-vue-js

💹 Hackable charting lib for traders. You can draw literally ANYTHING on top of candlestick charts. [Not Maintained]
https://tvjsx.github.io/trading-vue-demo/
MIT License
2.07k stars 631 forks source link

Uncaught TypeError: Cannot read property '_c' of undefined #160

Closed ungarson closed 3 years ago

ungarson commented 3 years ago

I was trying to follow the «How to use» example, and i received this error:

Uncaught TypeError: Cannot read property '_c' of undefined
    at Proxy.TradingVuevue_type_template_id_235c0ade_render (trading-vue.js?0042:5873)
    at renderComponentRoot (runtime-core.esm-bundler.js?5c40:696)
    at componentEffect (runtime-core.esm-bundler.js?5c40:4035)
    at reactiveEffect (reactivity.esm-bundler.js?a1e9:42)
    at effect (reactivity.esm-bundler.js?a1e9:17)
    at setupRenderEffect (runtime-core.esm-bundler.js?5c40:4018)
    at mountComponent (runtime-core.esm-bundler.js?5c40:3976)
    at processComponent (runtime-core.esm-bundler.js?5c40:3936)
    at patch (runtime-core.esm-bundler.js?5c40:3547)
    at mountChildren (runtime-core.esm-bundler.js?5c40:3736)
Screenshot 2020-11-17 at 14 44 42

I guess, the reason of that is that I use Vue 3.0.0. Is it so? My dependencies:

  "dependencies": {
    "core-js": "^3.6.5",
    "trading-vue-js": "^0.8.0",
    "vue": "^3.0.0"
  },
  "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",
    "@vue/eslint-config-airbnb": "^5.0.2",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.7.2",
    "eslint-plugin-import": "^2.20.2",
    "eslint-plugin-vue": "^7.0.0-0"
  }

How can i prevent this problem? Do you have something missing in the «How to use» example? Thanks.

ungarson commented 3 years ago

Indeed, chart works perfectly on "vue": "^2.6.11". I guess, this might be used as a workaround for me right now.

C451 commented 3 years ago

Yea, the vue3 branch is in progress.

Inga4711 commented 3 years ago

@C451 - Thank you for this gorgeus projekt.

Would like to use it with Vue 3. I'm also getting this "_c of undefined error". Any Idea when this might get available?