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
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'src' imported from /Users/myuser/Code/myproject/src/nested-elsewhere/also/very/deep.js
To reaffirm, this only happens once switching to ESM modules.
The text was updated successfully, but these errors were encountered:
Arro
changed the title
when switching to ESM modules, babel-node no longer works
when switching to ESM modules, this package no longer works
Oct 30, 2021
Once you switch your
package.json
totype: module
, usage of the this package breaks, including utils such asbabel-node
.Lets say your
.babelrc.cjs
looks like this:If you have a file like
src/nested/very/deep.js
and you want to load it in another file likesrc/nested-elsewhere/also/very/deep.js
results in:
To reaffirm, this only happens once switching to ESM modules.
The text was updated successfully, but these errors were encountered: