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
It seems that ES6 style imports currently does not work with some combination of Gulp, Yarn 2/3, and ES6 imports. I can get this issue with the following steps:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'fs-extra' imported from [path]/test/gulpfile.js
Did you mean to import fs-extra-npm-10.0.0-4f8c704115-5285a3d8f3.zip/node_modules/fs-extra/lib/index.js?
at new NodeError (node:internal/errors:371:5)
at packageResolve (node:internal/modules/esm/resolve:930:9)
at moduleResolve (node:internal/modules/esm/resolve:976:18)
at defaultResolve (node:internal/modules/esm/resolve:1078:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
at link (node:internal/modules/esm/module_job:78:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
The suggested import fs-extra-npm-10.0.0-4f8c704115-5285a3d8f3.zip seems to be clearly referring to the .yarn/cache file of the same name. It's somewhat peculiar it recognizes the PNP module exists. I tracked down this issue as well as this e2e test.
I currently have it working by converting it to .cjs and changing the imports to match.
The text was updated successfully, but these errors were encountered:
It seems that ES6 style imports currently does not work with some combination of Gulp, Yarn 2/3, and ES6 imports. I can get this issue with the following steps:
Got error:
The suggested import
fs-extra-npm-10.0.0-4f8c704115-5285a3d8f3.zip
seems to be clearly referring to the.yarn/cache
file of the same name. It's somewhat peculiar it recognizes the PNP module exists. I tracked down this issue as well as this e2e test.I currently have it working by converting it to
.cjs
and changing the imports to match.The text was updated successfully, but these errors were encountered: