charting-library-examples icon indicating copy to clipboard operation
charting-library-examples copied to clipboard

cannot be loaded as its extension is not registered in assetExts

Open salahbm opened this issue 1 year ago • 4 comments

Hi~ I am trying to implement chart on the expo SDK 50, have followed all the steps shown in the example. However, still facing same error on the android.

I tried to addd 'js' in metro.config.js but didnt help...

Error: 'android/app/src/main/assets/charting_library/charting_library.standalone.js' cannot be loaded as its extension is not registered in assetExts at getAsset (/Users/muhammad/Documents/react-native/coinkoops-app-frontend/node_modules/metro/src/Assets.js:198:11) at Server._processSingleAssetRequest (/Users/muhammad/Documents/react-native/coinkoops-app-frontend/node_modules/metro/src/Server.js:310:26)

Screenshot 2024-03-28 at 4 13 14 PM

salahbm avatar Mar 28 '24 07:03 salahbm

Same issue here

graciott avatar May 16 '24 21:05 graciott

same issue here @salahbm @graciott any success?

Bishal-think201 avatar Feb 08 '25 10:02 Bishal-think201

I dont remember what i did. Worked on android but not on iOS. So, i released a web app and use a webview

@Bishal-think201

graciott avatar Mar 05 '25 15:03 graciott

Had gone through few articles and open issues and understood the following in regards to expo, react-native for serving html, css and js file ( If anyone reading this should help to get things speed up ).

  1. We can use webview to server html file from an assets folder.
  2. We cannot not server js file directly from the assets folder (There are too many open issues on this which i did not see any closure) .
  3. A HTML file which has script tag is able to run the js code.

Below is something specific to Trading View usage in Mobile.

  1. To run the trading view charts ( advance or any other ) we will first need to server it from a server and later use that in the webview to display trading view charts.

In case I have missed something, someone do add to this solution.

Hope this helps others.

Bishal-think201 avatar Mar 06 '25 13:03 Bishal-think201