react-native-blob-util icon indicating copy to clipboard operation
react-native-blob-util copied to clipboard

Import issue with typescript - Declaration or statement expected

Open kashif-sk opened this issue 1 year ago • 2 comments

Hi. I am using this library in my typescript project

"react-native": "0.67.3" "react-native-blob-util": "^0.16.0"

I am getting an error while importing this library Parse errors in imported module 'react-native-blob-util': Declaration or statement expected.

Can someone please suggest what am I missing here

kashif-sk avatar Feb 07 '23 05:02 kashif-sk

Does it state any more information about where it is expecting a declaration or statement?

RonRadtke avatar Feb 24 '23 09:02 RonRadtke

@RonRadtke No nothing else just this error only in the import statement. Rest all works fine.

I've added it to import/ignore in .eslintrc.js as workaround for now 'import/ignore': ['node_modules/react-native-blob-util/index\\.js$'],

kashif-sk avatar Feb 24 '23 11:02 kashif-sk