rn-fetch-blob icon indicating copy to clipboard operation
rn-fetch-blob copied to clipboard

Is library working with web?

Open ChillyHoney opened this issue 2 years ago • 4 comments

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,

ChillyHoney avatar Aug 10 '22 07:08 ChillyHoney

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 }],

quicksilverr avatar Sep 16 '22 07:09 quicksilverr

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

JacobDel avatar Mar 27 '23 11:03 JacobDel

i have the same question

zcwangke avatar Jul 07 '23 03:07 zcwangke

Getting the same issue. Has any one came up with a solution?

sandy0096 avatar Jul 12 '23 02:07 sandy0096