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

Using the same configuration file webstrom plugin and shell execution results are not the same #83

Open
Linkontoask opened this issue Oct 18, 2019 · 0 comments

Comments

@Linkontoask
Copy link

Different place

import('hello').then((value) => {
  this.setState({
    name: value.name(),
  })
})

.eslintrc.js

module.exports = {
  parser: "babel-eslint",
}

Error message

  54:5  error  Parsing error: 'import' and 'export' may only appear at the top level

✖ 1 problem (1 error, 0 warnings)

I have installed @babel/plugin-syntax-dynamic-import but there is no problem with dynamic import in the shell environment. There is a problem in the webstrom environment. I guess it is caused by the eslint plugin.

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

1 participant