Replies: 2 comments 7 replies
-
Lines 4 to 10 in fe52c1f |
Beta Was this translation helpful? Give feedback.
-
import { rmSync } from 'fs' rmSync('dist-electron', { recursive: true, force: true }) // https://vitejs.dev/config/ function debounce<Fn extends (...args: any[]) => void>(fn: Fn, delay = 299) { |
Beta Was this translation helpful? Give feedback.
-
'lstat' is not exported by __vite-browser-external, imported by src/samples/node-api.ts
file: D:/examplel/src/samples/node-api.ts:1:9
1: import { lstat } from 'fs/promises'
^
2: import { cwd } from 'process'
3: import { ipcRenderer } from 'electron'
error during build:
Error: 'lstat' is not exported by __vite-browser-external, imported by src/samples/node-api.ts
at error (file:///D:/examplel/node_modules/rollup/dist/es/shared/rollup.js:1858:30)
at Module.error (file:///D:/examplel/node_modules/rollup/dist/es/shared/rollup.js:12429:16)
at Module.traceVariable (file:///D:/examplel/node_modules/rollup/dist/es/shared/rollup.js:12788:29)
at ModuleScope.findVariable (file:///D:/examplel/node_modules/rollup/dist/es/shared/rollup.js:11440:39)
at Identifier.bind (file:///D:/examplel/node_modules/rollup/dist/es/shared/rollup.js:7439:40)
at CallExpression.bind (file:///D:/examplel/node_modules/rollup/dist/es/shared/rollup.js:5269:23)
at CallExpression.bind (file:///D:/examplel/node_modules/rollup/dist/es/shared/rollup.js:8935:15)
at MemberExpression.bind (file:///D:/examplel/node_modules/rollup/dist/es/shared/rollup.js:5269:23)
at MemberExpression.bind (file:///D:/examplel/node_modules/rollup/dist/es/shared/rollup.js:8616:19)
at CallExpression.bind (file:///D:/examplel/node_modules/rollup/dist/es/shared/rollup.js:5269:23)
Beta Was this translation helpful? Give feedback.
All reactions