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

bable-eslint is depracated #208

Open
gustavo-salazar opened this issue Oct 12, 2021 · 0 comments
Open

bable-eslint is depracated #208

gustavo-salazar opened this issue Oct 12, 2021 · 0 comments

Comments

@gustavo-salazar
Copy link

Hey there,
I was updating the dependencies on my project and noticed that the flow-coverage-report started failing with an error similar to:

Error while generating Flow Coverage Report: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /project/node_modules/eslint/node_modules/eslint-scope/lib/definition.js
require() of ES modules is not supported.
require() of /project/node_modules/eslint/node_modules/eslint-scope/lib/definition.js from /project/node_modules/babel-eslint/lib/require-from-eslint.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename definition.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /project/node_modules/eslint/node_modules/eslint-scope/package.json.

I believe this is related to the dependency babel-eslint which has been deprecated in favour of @babel/eslint-parser: see https://github.com/babel/babel-eslint
It would be great if you can update that dependency.
Thanks for the good work!

sbates-idrc added a commit to sbates-idrc/c2lc-coding-environment that referenced this issue Dec 21, 2021
With the update to react-scripts 5.0.0, flow-coverage-report is failing
with an error similar to this issue filed against flow-coverage-report
on 2021-10-21:

rpl/flow-coverage-report#208
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