question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'interval_ms' of undefined

See original GitHub issue

Description

I am trying to update the an overlays data, specifically “ROC” Overlay, i am using .merge to update the data, i use that to update chart.data this.chart.merge('chart.data', data), and it works perfectly, but when I update an Overlay like ROC I get the error TypeError: Cannot read property 'interval_ms' of undefined

Screenshot

image

Code (MVP)

const data = [[1617978600000, 2.38], [1618237800000, 2.31], [1618324200000, 1.58]]
this.chart.merge(`offchart.ROC5C.data`, data)

Console errors (if any)

image

Additional Info

(tvjs version, OS, browser, npm version…) “trading-vue-js”: “^1.0.2”

I know the project’s not being maintained, just hoping someone will help. thanks in advanced!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
oneart-devcommented, Jun 12, 2021

@Swoorup nope, the error not about missing TF but not able to get chart ref because its undefined. I found my problem. I was using v-if on TradingView component while loading chart data. Removing it fixed the issue.

So the main problem is tv extensions do not check for undefined refs.

0reactions
Swoorupcommented, Jun 12, 2021

Proper fix is to give the timeframe interval when you specify the datacube.

this.chart = new DataCube({
   chart: { tf: '1m '},

This is only an issue with ohlcv chart I guess?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property 'interval' of undefined
I am experiencing jQuery errors in the Dashboard and the plugin Enable jQuery Migrate Helper did not help. When I try to edit...
Read more >
TypeError: Cannot read property of undefined - Stack Overflow
TypeError : Cannot read property '0' of undefined. The line where I always get this error is: var FieldValue = details.requestBody.
Read more >
tayλor / Ideal Love - Observable
TypeError : Cannot set properties of null (setting 'innerHTML'). undefined. TypeError: window.Magnetometer is not a constructor.
Read more >
Cannot read properties of undefined (reading 'checked')
Uncaught TypeError: Cannot read properties of undefined (reading 'checked') · kaz12 Tech
Read more >
slideshow is running one time - YOOtheme Support
Autoplay Interval (ms) : 5000 ... Items Per Set :3 ... Uncaught TypeError: Cannot read property 'top' of null f.extend.puzzle f.extend.show ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found