-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
This probably wont go anywhere, but afaik the forge-esm-ts is not esm. Running it on node 21 with the VITE_CJS_TRACE
environment variable set, vite still gives the CJS warning.
Trace: The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
at warnCjsUsage (/home/core/electron-vite-samples/forge-esm-ts/node_modules/vite/index.cjs:33:3)
at Object.<anonymous> (/home/core/electron-vite-samples/forge-esm-ts/node_modules/vite/index.cjs:3:1)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
at Object.require.extensions.<computed> [as .js] (/home/core/electron-vite-samples/forge-esm-ts/node_modules/ts-node/src/index.ts:1608:43)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Function.Module._load (node:internal/modules/cjs/loader:1021:12)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/home/core/electron-vite-samples/forge-esm-ts/node_modules/@electron-forge/plugin-vite/src/VitePlugin.ts:9:1)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
at Object.require.extensions.<computed> [as .js] (/home/core/electron-vite-samples/forge-esm-ts/node_modules/ts-node/src/index.ts:1608:43)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Function.Module._load (node:internal/modules/cjs/loader:1021:12)
at Module.require (node:internal/modules/cjs/loader:1230:19)
Presumably this is originating from Forge, going off the stack trace.
Metadata
Metadata
Assignees
Labels
No labels