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

Parsing error: The keyword 'import' is reserved #12

Closed
gcjbr opened this issue Apr 23, 2020 · 7 comments
Closed

Parsing error: The keyword 'import' is reserved #12

gcjbr opened this issue Apr 23, 2020 · 7 comments
Labels
bug Something isn't working

Comments

@gcjbr
Copy link

gcjbr commented Apr 23, 2020

There seems to be some error with babel configuration.

I'm having this error on my VSCODE on every file using import

@colbyfayock
Copy link
Owner

hey @souljacker would you mind creating a Github repository with your code so I can try to take a look?

@gcjbr
Copy link
Author

gcjbr commented Apr 30, 2020

It's literally the one here, I just cloned

@colbyfayock
Copy link
Owner

strange - what version of node are you using? I'm not seeing any problems on my system

this was on v10.16.3

image

@adisher
Copy link

adisher commented Jul 5, 2020

Parsing error: The keyword 'import' is reserved eslint

A red line pops under the import keyword. It doesn't happen the first time I gatsby develop.
Node: v12.18.1

@colbyfayock

@colbyfayock
Copy link
Owner

@souljacker @adisher still can't repro - but i found this: jsx-eslint/eslint-plugin-react#448

I added modules: true to the eslint config, can you see if that helps?

@colbyfayock colbyfayock added the bug Something isn't working label Jul 22, 2020
@colbyfayock
Copy link
Owner

hey checking in here - any luck?

@colbyfayock
Copy link
Owner

going to close this - please let me know if you if you can still repro after the change above

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

3 participants