Open XIAO-RUI-RUI opened 6 months ago
I had the exact same issue, but with a different package on my project running Electron+Vite. The issue went away after I followed the instructions for adding the package as a native module: https://www.electronforge.io/config/plugins/vite#native-node-modules
Error
Environment
win10、node v18.17.1、ts-node v10.9.1、Vite+Vue3。
Files
I use Vue3+Vite init my project, when I import fluent-ffmpeg in electron/main.ts, error opened like this. electron/main.ts
generateFirstFrame() come from electron/VideoProcess.ts
And my test file is process successfully, but when I use in electron/main.ts, error occours. My VideoProcess.test.ts:
Wish someone help me! Thinks in advance!