You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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
Hey there,
I was updating the dependencies on my project and noticed that the
flow-coverage-report
started failing with an error similar to: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-eslintIt would be great if you can update that dependency.
Thanks for the good work!
The text was updated successfully, but these errors were encountered: