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
The following is logged whenever Babel is involved (running tests mostly):
(node:39890) Warning: require() of ES modules is not supported.require() of babel.config.js from node_modules/@babel/core/lib/config/files/configuration.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which de
fines all .js files in that package scope as ES modules.Instead rename babel.config.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from package.json.
The following is logged whenever Babel is involved (running tests mostly):
Babel 7.7.0 adds support for
.cjs
extension: https://github.com/babel/babel/blob/master/CHANGELOG.md#v770-2019-11-05So the tasks:
babel.config.js
->babel.config.cjs
to avoid this warningThe text was updated successfully, but these errors were encountered: