Skip to content

SyntaxError: $ \react-native\Libraries\vendor\emitter\EventEmitter.js: Unexpected token, expected "]" (39:5) #1421

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

Closed
RaguRam1991 opened this issue Dec 27, 2024 · 5 comments

Comments

@RaguRam1991
Copy link

Do you want to request a feature or report a bug?

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.

What is the expected behavior?

Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.

@RaguRam1991 RaguRam1991 changed the title SyntaxError: $ \node_modules\react-native\Libraries\vendor\emitter\EventEmitter.js: Unexpected token, expected "]" (39:5) SyntaxError: $ \react-native\Libraries\vendor\emitter\EventEmitter.js: Unexpected token, expected "]" (39:5) Dec 27, 2024
@stompingBubble
Copy link

@RaguRam1991
I have this problem since a couple of days, didn't change anything prior to getting the error, and it worked fine to build and launch my app before then.

Did you solve this? I've tried everything :( Please reply if so

@AwaisBinKaleem
Copy link

i am also facing this from couple of days but not found solution anywhere.tried every possible thing

@robhogan
Copy link
Contributor

robhogan commented Jan 5, 2025

There's absolutely no detail for us to go on here, and the issue template has been ignored.

Please, if someone is seeing this error, open a new issue with as much information as you can.

@chriswheeler
Copy link

This looks related - facebook/react-native#46355

As per the comment on the above, I updated all devDependencies in package.json to match https://github.com/react-native-community/template/blob/0.76-stable/template/package.json for my project and got past the 'Unexpected token' error

@huntie
Copy link
Member

huntie commented Jan 6, 2025

Duplicate of facebook/react-native#46355, closing.

@huntie huntie closed this as completed Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants