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

Open
@Jonathansoufer

Description

@Jonathansoufer

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}
            />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions