Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token when bundling #104

Closed
richardkavanagh77 opened this issue Oct 14, 2021 · 1 comment
Closed

Unexpected token when bundling #104

richardkavanagh77 opened this issue Oct 14, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@richardkavanagh77
Copy link

richardkavanagh77 commented Oct 14, 2021

After installing, when I run react-native run-android I get the following error:

error: bundling failed: SyntaxError: /Users/nickwoods/Documents/GitHub/client-app/node_modules/react-native-toast-notifications/src/index.ts: Unexpected token (4:12)

  2 | export { default as ToastProvider } from "./hook/provider";
  3 | export { default as useToast } from "./hook/useToast";
> 4 | export type {ToastType} from './hook/context'
    |             ^
@richardkavanagh77 richardkavanagh77 added the bug Something isn't working label Oct 14, 2021
@richardkavanagh77
Copy link
Author

Fixed by upgrading @babel/core and @babel/runtime as per https://stackoverflow.com/questions/61166181/how-to-solve-syntax-error-unexpected-token-export-type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant