Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maps/fusioncharts.india.js' cannot be loaded as its extension is not registered in assetExts #161

Open
bhavinatharva opened this issue Jul 12, 2022 · 1 comment

Comments

@bhavinatharva
Copy link

All other fusions charts are loading, expect map charts

"react-native-fusioncharts": "4.1.2"
"fusioncharts": "3.13.4"
"react-native": "0.61.3"
"react": "16.11.0"

Screenshot 2022-07-12 at 8 15 17 PM

it is working fine in android, but not working in ios

Error: 'fusioncharts.india.js' cannot be loaded as its extension is not registered in assetExts
    at /Users/sample-react-native/src/node_modules/metro/src/Assets.js:356:13
    at Generator.next (<anonymous>)
![Simulator Screen Shot - iPhone 11 - 2022-07-12 at 20 14 58](https://user-images.githubusercontent.com/84075780/178518063-59ceda46-dfa6-412e-b3bb-b52e8bf2e62c.png)

    at asyncGeneratorStep (/Users/bhavinparghi/Workspace/ReactNativeWorkspace/sample-react-native/src/node_modules/metro/src/Assets.js:52:24)
    at _next (/Users/bhavinparghi/Workspace/ReactNativeWorkspace/sample-react-native/src/node_modules/metro/src/Assets.js:72:9)
    at /Users/bhavinparghi/Workspace/ReactNativeWorkspacesample-react-native/src/node_modules/metro/src/Assets.js:77:7
    at new Promise (<anonymous>)
    at /Users/bhavinparghi/Workspace/ReactNativeWorkspace/sample-react-native/src/node_modules/metro/src/Assets.js:69:12
    at getAsset (/Users/bhavinparghi/Workspace/ReactNativeWorkspace/sample-react-native/src/node_modules/metro/src/Assets.js:337:20)
    at /Users/bhavinparghi/Workspace/ReactNativeWorkspace/sample-react-native/src/node_modules/metro/src/Server.js:992:28
    at Generator.next (<anonymous>)
::1 - - [12/Jul/2022:14:35:36 +0000] "GET /assets/maps/fusioncharts.india.js HTTP/1.1" 404 - "http://localhost:8081/assets/fusioncharts.html?platform=ios&hash=9be20ec8f9e73309304cf97b510c2076" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
@AyanBhadury
Copy link

Hey,

Save the file from this cdn, manually place it in the assets folder, and reference it in the HTML file.

https://cdn.fusioncharts.com/fusioncharts/3.20.0/maps/fusioncharts.india.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants