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
App threw an error during load
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /Users/junso/Projects/rim/node_modules/chalk/source/index.js
require() of ES modules is not supported.
require() of /Users/junso/Projects/rim/node_modules/chalk/source/index.js from /Users/junso/Projects/rim/node_modules/.electron-run/app/index.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 /Users/junso/Projects/rim/node_modules/chalk/source/index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/junso/Projects/rim/node_modules/chalk/package.json.
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1169:13)
at Module.load (internal/modules/cjs/loader.js:992:32)
at Module._load (internal/modules/cjs/loader.js:885:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
at Module.require (internal/modules/cjs/loader.js:1032:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/Users/junso/Projects/rim/node_modules/.electron-run/app/index.js:128:31)
at Module._compile (internal/modules/cjs/loader.js:1152:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
at Module.load (internal/modules/cjs/loader.js:992:32)
The text was updated successfully, but these errors were encountered:
Error when using pure esm module like
chalk
.The text was updated successfully, but these errors were encountered: