rn-fetch-blob
rn-fetch-blob copied to clipboard
Is library working with web?
Hi, i'm using rn-fetch-blob in 0.12.0
version with react-native 0.68.2
and react-native-web 0.17.7
After installation this package web stops working. After starting web I've getting this error:
./node_modules/rn-fetch-blob/index.js 12:12
Module parse failed: Unexpected token (12:12)
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
| AppState,
| } from 'react-native'
> import type {
| RNFetchBlobNative,
| RNFetchBlobConfig,
You can try adding these in your web pack, in plugins.
['@babel/plugin-transform-react-jsx', { loose: true }], ['@babel/plugin-proposal-export-default-from', { loose: true }],
You can try adding these in your web pack, in plugins.
['@babel/plugin-transform-react-jsx', { loose: true }], ['@babel/plugin-proposal-export-default-from', { loose: true }],
This does not resolve the issue
i have the same question
Getting the same issue. Has any one came up with a solution?