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
Tried in both node 14.18.1 and 16.13.0; seem to get similar results.
I disabled $.scripts['lint'] in packages.json, since that seems to have its own issues (typically, prefer "node:{symbol}" over "{symbol}".
Snippet:
$ yarn run test
...
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: ${PWD}/node_modules/p-defer/index.js
require() of ES modules is not supported.
require() of ${PWD}/node_modules/p-defer/index.js from ${PWD}/out/src/settingsAssistant.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from ${PWD}/node_modules/p-defer/package.json.
This also happens when I try to launch debug mode (F5); the error is indicated in the little bottom-right notification area.
Expected behavior
It works?
I'm guessing this is a version pinning thing; I dunno anything about how yarn.lock interacts with npm stuff TBH.
Given #10 and #11, is there something dumb I'm doing?
No, I can reproduce this too. I didn't work on this repository for a while. It's amazing how fast the JS ecosystem changes and builds break completely.
Steps to reproduce
Tried in both node 14.18.1 and 16.13.0; seem to get similar results.
I disabled
$.scripts['lint']
inpackages.json
, since that seems to have its own issues (typically,prefer "node:{symbol}" over "{symbol}"
.Snippet:
This also happens when I try to launch debug mode (F5); the error is indicated in the little bottom-right notification area.
Expected behavior
It works?
I'm guessing this is a version pinning thing; I dunno anything about how
yarn.lock
interacts withnpm
stuff TBH.Environment
Additional context
Given #10 and #11, is there something dumb I'm doing?
The text was updated successfully, but these errors were encountered: