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
{{ message }}
This repository was archived by the owner on Feb 20, 2026. It is now read-only.
Trying to spin this up for a nodejs app and running into issues as we have
"type": "module",
set in our package.json
[nodemon] starting `node src/server.js`
file:///Users/me/code/platform-gateway/lib/secrets.js:3
const secrets = require("gitops-secrets/no-fs");
^
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '/Users/me/code/platform-gateway/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at file:///Users/me/code/platform-gateway/lib/secrets.js:3:17
Hi Team,
Trying to spin this up for a
nodejsapp and running into issues as we have"type": "module",set in our
package.jsonIs there an easy enough way around this ?
Chris :)