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
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /github/workspace/node_modules/node-fetch/src/index.js
175
require() of ES modules is not supported.
176
require() of /github/workspace/node_modules/node-fetch/src/index.js from /github/workspace/src/cli/gcMonitors.cjs 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.
177
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /github/workspace/node_modules/node-fetch/package.json.
178
179
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1015:13)
180
at Module.load (internal/modules/cjs/loader.js:863:32)
181
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
182
at Module.require (internal/modules/cjs/loader.js:887:19)
183
at require (internal/modules/cjs/helpers.js:74:18)
184
at Object.<anonymous> (/github/workspace/src/cli/gcMonitors.cjs:2:15)
185
at Module._compile (internal/modules/cjs/loader.js:999:30)
186
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
187
at Module.load (internal/modules/cjs/loader.js:863:32)
188
at Function.Module._load (internal/modules/cjs/loader.js:708:14) {
189
code: 'ERR_REQUIRE_ESM'
190
}
Any idea how best to fix here? Thank you!
The text was updated successfully, but these errors were encountered:
Hi!
I updated dept for your status page to fix a myriad of security vulnerabilities and trying to deploy via CD here: https://github.com/iron-security/status/runs/4650294217?check_suite_focus=true#step:7:174
However, this results in the following error:
Any idea how best to fix here? Thank you!
The text was updated successfully, but these errors were encountered: