highcharts / highcharts-react-native

Other
103 stars 81 forks source link

HighCharts for web #110

Open JustynaKK opened 3 years ago

JustynaKK commented 3 years ago

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",

Denyllon commented 3 years ago

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!