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

Uncaught SyntaxError: Cannot use import statement outside a module #12866

Closed
CristalFJJ opened this issue Feb 23, 2021 · 9 comments
Closed

Uncaught SyntaxError: Cannot use import statement outside a module #12866

CristalFJJ opened this issue Feb 23, 2021 · 9 comments
Labels
i: bug i: needs triage Needs Info outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@CristalFJJ
Copy link

CristalFJJ commented Feb 23, 2021

Bug Report

image

v7.13.2
chrome v88.0
I guess it's because of the.@bable/runtime v7.13.2 *.mjs file

@babel-bot
Copy link
Collaborator

Hey @CristalFJJ! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite."

@babel-bot
Copy link
Collaborator

Hi @CristalFJJ! This issue is missing some important information we'll need to be able to reproduce this issue.

Please understand that we receive a high volume of issues, and there are only a limited number of volunteers that help maintain this project. The easier it is for us to decipher an issue with the info provided, the more likely it is that we'll be able to help.

Please make sure you have the following information documented in this ticket:

  1. Your Babel configuration (typically from .babelrc or babel.config.js)
  2. The current (incorrect) behavior you're seeing
  3. The behavior you expect
  4. A short, self-contained example

Please provide either a link to the problem via the repl, or if the repl is insufficient, a new and minimal repository with instructions on how to build/replicate the issue.

@hzoo
Copy link
Member

hzoo commented Feb 23, 2021

Can you check with v7.13.6?

@titanew
Copy link

titanew commented Feb 24, 2021

I also have the same problem

image

@CristalFJJ
Copy link
Author

Can you check with v7.13.6?

v7.13.6 the same problem exists, I use history@4.10.1 check with it.

@CristalFJJ
Copy link
Author

CristalFJJ commented Feb 24, 2021

Can you check with v7.13.6?

image

change it like this and it will work

@nicolo-ribaudo
Copy link
Member

#12866 (comment). This is really strange 🤔

Can someone create a repository that reproduces the bug? I have trouble understanding why it's happening and cannot reproduce it locally.

@CristalFJJ
Copy link
Author

CristalFJJ commented Feb 25, 2021

#12866 (comment). This is really strange 🤔

Can someone create a repository that reproduces the bug? I have trouble understanding why it's happening and cannot reproduce it locally.

is the same problem with this issues and it is resolved 12881
thanks !!!

@JLHwung
Copy link
Contributor

JLHwung commented Feb 25, 2021

I am glad it works!

@JLHwung JLHwung closed this as completed Feb 25, 2021
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 28, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: bug i: needs triage Needs Info outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

6 participants