tradingview / charting-library-examples

Examples of Charting Library integrations with other libraries, frameworks and data transports
MIT License
1.4k stars 763 forks source link

window.TradingView.onready is not a function #145

Closed revanth666 closed 4 years ago

revanth666 commented 4 years ago

TypeError: window.TradingView.onready is not a function TVChartContainer.componentDidMount

/TradeViewChart/tradingview-js-api-tutorial-master/tradingview-js-api-tutorial-master/part1/src/components/TVChartContainer/index.jsx:58

elukonina commented 4 years ago

Method onready was removed. You can use window.addEventListener('DOMContentLoaded', callback, false) instead.

You can see Breaking-Changes

SunilKumarHurkat commented 3 years ago

TypeError: window.TradingView.onready is not a function TVChartContainer.componentDidMount

/TradeViewChart/tradingview-js-api-tutorial-master/tradingview-js-api-tutorial-master/part1/src/components/TVChartContainer/index.jsx:58