Closed jonaskuske closed 3 years ago
When using Yarn 2 and enableGlobalCache: true in .yarnrc.yml, all imports will result in errors.
enableGlobalCache: true
.yarnrc.yml
Repro here: https://github.com/jonaskuske/esm-yarn2-global-repro
With server.js as
server.js
import express from 'express';
started via node -r esm server.js in the npm/yarn script, it throws this error:
node -r esm server.js
Fixed in https://github.com/yarnpkg/berry/pull/2068
When using Yarn 2 and
enableGlobalCache: true
in.yarnrc.yml
, all imports will result in errors.With
server.js
asstarted via
node -r esm server.js
in the npm/yarn script, it throws this error: