my project is base on [email protected]
.
npm i -D bytenode @herberttn/bytenode-webpack-plugin
npm run build:normal
npm run preview:normal
but, in electron command(not use electron-forge
, want use electron
directly), is not ok.
npm run build:electron # Error: Cannot find module 'node:assert/strict'
in ./scripts/build-main.js
, there are two functions.
first use compileFile
api, second use compileElectronCode
,
but also throw different error.
npm run build:main
npm run preview:main # Error: Cannot find module 'node:assert/strict'