Closed PTBKoo closed 5 years ago
See #30
@timocov I make PR for nextjs.
do you have an example to help me? I even can not get the library through this link https://github.com/tradingview/charting_library/ it is 404!
@timocov I make PR for nextjs.
I need help if you had the experience using trading view charts in nextjs. Could you please help me?
@afsanefda you should authorize to access https://github.com/tradingview/charting_library
You can apply it https://www.tradingview.com/HTML5-stock-forex-bitcoin-charting-library/
Ive followed this example to try and integrate TV with Next.js https://github.com/tradingview/charting-library-examples/tree/master/react-javascript
First error I was getting was window was undefined so I added a check to import only when window was defined and was getting a new error: TypeError: Cannot set property 'TradingView' of undefined
Used this to help: https://github.com/zeit/next.js/wiki/FAQ
Link to main code: https://github.com/PTBKoo/nexttv/blob/master/pages/index.js
Steps to reproduce the behavior: