tradingview / charting-library-examples

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

Polyfills.js file in the nextjs example is not present in the charting library #261

Closed ChaitanyaZebpay closed 2 years ago

ChaitanyaZebpay commented 2 years ago

Checklist

Describe the bug The pollyfills.js file which is mentioned here: https://github.com/tradingview/charting-library-examples/blob/master/nextjs-javascript/pages/_document.js#L8 is not present in the datafeeds I cloned from https://github.com/tradingview/trading_platform, only the bundle.js file is present. And thus I am getting a 404.

To Reproduce

Steps to reproduce the behavior:

  1. Clone the repo
  2. Go to nextjs-javascript/ folder
  3. Follow https://github.com/tradingview/charting-library-examples/tree/master/nextjs-javascript#how-to-start
timocov commented 2 years ago

Thanks for the report! I think we'll fix it in #260

azivkovi commented 2 years ago

@timocov It's the same for react-javascript and react-typescript examples. index.html loads polyfills.js script that does not exist in /datafeeds/udf/dist/.

https://github.com/tradingview/charting-library-examples/blob/master/react-javascript/public/index.html https://github.com/tradingview/charting-library-examples/blob/master/react-typescript/public/index.html

timocov commented 2 years ago

@azivkovi thanks for catching that, fixed now.