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
When operating from within a PnPify environment the node_modules folder exists, but creating a folder inside it (in particular node_modules/.cache) isn't possible without triggering a ENOENT.
In practice it translates into an infinite loop with the mkdirp package, triggered in particular by Webpack operating in production mode (because Terser uses the cache).
The fix would be to silently create the node_modules folder when a dot-file (or dot-folder) is created within node_modules.
Describe the bug
When operating from within a PnPify environment the
node_modules
folder exists, but creating a folder inside it (in particularnode_modules/.cache
) isn't possible without triggering a ENOENT.In practice it translates into an infinite loop with the
mkdirp
package, triggered in particular by Webpack operating inproduction
mode (because Terser uses the cache).The fix would be to silently create the
node_modules
folder when a dot-file (or dot-folder) is created withinnode_modules
.To Reproduce
The text was updated successfully, but these errors were encountered: