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
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