Skip to content

Unexpected token "{". Import call expects exactly one argument #25545

Closed
@canyavall

Description

@canyavall

One week ago everything was working perfectly fine. I came back from holidays and pulled all new code from my coleagues. Executed yarn run-android and I got this message:

Unexpected token "{". Import call expects exactly one argument

I thought, ok, maybe some code from my coleagues broke it so I create a branch from the last working state and nothing, same issue...

Since then (2days) I've been trying everything that came to my mind (gradlew clear, clean cache from yarn and npm, remove node_modules (a lot of times)... and nothing works...

One thing that's strange is the metro bundler path:
image

React Native version:
React Native Environment Info:
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz
Memory: 5.85 GB / 15.88 GB
Binaries:
Yarn: 1.15.2 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.3.0.0 AI-182.5107.16.33.5264788

Steps To Reproduce

1.Just run react-native run-android and done...

Snack, code example, or link to a repository: I really don't know which code paste as it really breaks before bundling...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions