joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.81k stars 772 forks source link

Webpack doesn't like types. Failed to compile. #693

Open haydenlinder opened 3 years ago

haydenlinder commented 3 years ago

I am using expo ~39.0.2 and react native 0.61.4. I created the app using expo init myapp. I installed this library and used the following code in App.js:

import RNFetchBlob from 'rn-fetch-blob';

My app crashes and I get this error:

/Users/hayden/Desktop/projects/myapp/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,

How do I fix? Thanks.

makao007 commented 3 years ago

I face the same issue, could somebody know how to solve it ?

Azeler3 commented 3 years ago

I have the same problem.

GuilhermeBergamoBR commented 3 years ago

I'm facing this issue right now. Anyone alive here?

highonpotenuse commented 2 years ago

I'm facing the same problem too. Anyone here fixed it yet?

devmargooo commented 2 years ago

Same(