pastelsky / bundlephobia

🏋️ Find out the cost of adding a new frontend dependency to your project
https://bundlephobia.com
MIT License
8.89k stars 221 forks source link

Failed to build this package @freestar/freestar-plugin-react-native #789

Open kkawai opened 1 year ago

kkawai commented 1 year ago

Type

BuildError

Failed to build this package.

However, it runs fine in a sample app that uses this package. Please help. Thank you. Actual package: https://github.com/freestarcapital/freestar-plugin-react-native

Package name

@freestar/freestar-plugin-react-native

Entire error (stringified) I see in my browser console

/tmp/tmp-build/packages/build-@freestarfreestar-plugin-react-native-5QU/node_modules/@freestar/freestar-plugin-react-native/FreestarReact.js 5:12 Module parse failed: Unexpected token (5:12) File was processed with these loaders: ./node_modules/shebang-loader/index.js ./node_modules/package-build-stats/node_modules/string-replace-loader/index.js You may need an additional loader to handle the result of these loaders. | | import {NativeModules, NativeEventEmitter, Platform} from 'react-native'; > import type EmitterSubscription from 'EmitterSubscription'; | | const FreestarReactBridge = NativeModules.FreestarReactBridge; @ /tmp/tmp-build/packages/build-@freestarfreestar-plugin-react-native-5QU/index.js 1:10-59