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

[Bug] [SyntaxError: No identifiers allowed directly after numeric literal] #116

Open
arunim2405 opened this issue Aug 18, 2021 · 4 comments
Assignees

Comments

@arunim2405
Copy link

Description

[What happened]
[SyntaxError: No identifiers allowed directly after numeric literal]

Steps to reproduce the behaviour:

User CRNA to create a default app
import anything from react-native-magnus
Add steps to reproduce this behaviour, include console / network logs & screenshots

Important Details

  • Version: [Cloud / Self-Hosted vx.x]
  • OS: [e.g.MacOSX]
  • Browser [e.g. chrome, safari]
@arunim2405
Copy link
Author

Update, this is a bug when using Expo, worked fine when I used community cli

@yakusho
Copy link

yakusho commented Nov 11, 2021

I had to downgrade the package color from 4.0.1 to 3.2.1 in order to make it work.

Edit: Package name was incorrectly named "colors", it's in fact "color" as aleksailosey commented.

@aleksailosey
Copy link

aleksailosey commented Jan 25, 2022

@marcjcs That worked for me, but I think you mean the color package instead of colors, right?

@ztcollazo
Copy link

Hey, I have this same problem, so I've checked out some similar issues and came across other issues. One of them recommended adding @babel/plugin-proposal-numeric-separator to your babel/metro config. While this may be a temporary fix, some other libraries might be able to take the place of color, such as chroma-js or colord.

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

5 participants