i use like this
`import { webContents, ipcMain, app, BrowserWindow, protocol } from "electron"
import path from "path"
import { gitLog } from "./util/gitHash"
let xlsx = require("node-xlsx")
let fs = require("fs")
// 热更新
try {
require('electron-reloader')(module);
} catch (e) {
console.log(e,'错误');
}`
but show error
[7436:0111/155148.798:ERROR:cache_util_win.cc(20)] Unable to move the cache: 拒绝访问。 (0x5)
[7436:0111/155148.798:ERROR:cache_util.cc(145)] Unable to move cache folder C:\Users\JNPF\AppData\Roaming\toolbox\GPUCache to C:\Users\JNPF\AppData\Roaming\toolbox\old_GPUCache_000
by the way,i use ts, Whether there are other configurations
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too