Skip to content

Error: 'src/assets/node_modules/anychart/dist/js/anychart-bundle.min.js' cannot be loaded as its extension is not registered in assetExt #1

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

Open
Jonathansoufer opened this issue Feb 8, 2021 · 0 comments

Comments

@Jonathansoufer
Copy link

Following the example of this library using react-native (no Expo env) leads to the following error:

Error: 'src/assets/node_modules/anychart/dist/js/anychart-bundle.min.js' cannot be loaded as its extension is not registered in assetExt

When changing the metro-config/src/defaults/default.js to include js extension on exports.assetExts array leads to error.

I am using a simple webview (see below) to load the HTML provided in this library.

       <WebView
            source={require('../../assets/charts/chart.html')}
            style={{ height: 500}}
            javaScriptEnabled={true}
            domStorageEnabled={true}
            startInLoadingState={true}
            />
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

1 participant