Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

393
Visualizações
Eslint giving error on the first line of file

enter image description here

What is this error on the first line of the file it came up on every file and when I hover over it, it says:

Parsing error: require() of ES Module F:\web\React Native\dog_food\node_modules\eslint-scope\lib\definition.js from F:\web\React Native\dog_food\node_modules\babel-eslint\lib\require-from-eslint.js not supported.
Instead change the require of definition.js in F:\web\React Native\dog_food\node_modules\babel-eslint\lib\require-from-eslint.js to a dynamic import() which is available in all CommonJS modules.eslint
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Maybe you use deprecated babel-eslint parser, try to install @babel/eslint-parser and add it to field "parser" at eslint config file

$ yarn remove babel-eslint
$ yarn add --dev @babel/eslint-parser

.eslintrc.json

{
  ...
  "parser": "@babel/eslint-parser",
  ...
}

and reload your IDE

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda