throw error #1230
-
I am using better-sqlite3,but it throw error: Error: The module '\?\D:\temp\electron-react-vite-starter-master111\node_modules\better-sqlite3\build\Release\better_sqlite3.node' The Node version is 18.20.3 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
And the better-sqlite3 is the latest version 11.1.2。Is there any divine help |
Beta Was this translation helpful? Give feedback.
-
You need to use something like https://github.com/electron/rebuild to use the correct version of the library for the Electron version you are using. Running |
Beta Was this translation helpful? Give feedback.
You need to use something like https://github.com/electron/rebuild to use the correct version of the library for the Electron version you are using. Running
electron-rebuild
in your project should be enough if all versions are recent (e.g, Electron >= 29).