highcharts/highcharts-react-native

HighCharts for web

JustynaKK opened this issue · 1 comments

I am trying to run my app in the browser using Expo (react-native-web) and I am getting this error during compilation:

PATH:/node_modules/@highcharts/highcharts-react-native/src/HighchartsReactNative.js 34:16
Module parse failed: Unexpected token (34:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|     }
| 
>     setHcAssets = async (useCDN) => {
|         try {
|             await this.setLayout()

On mobiles everything works well

"@highcharts/highcharts-react-native": "3.1.2",

Hi @JustynaKK ,

Thank you for contacting us.
It looks like the problem with your bundler configuration. Did you set up your own webpack.config.js file? If yes, could you provide me with it? We definitely need more detailed informations about your configurations, or even any minimal repository (with steps to reproduce) where the problem is noticeable. Is it possible to get it?

Kind regards!