better-sqlite3 icon indicating copy to clipboard operation
better-sqlite3 copied to clipboard

Module not found: Error: Cannot find module 'drivelist/build/Release/drivelist.node'

Open icoco opened this issue 5 months ago • 2 comments

use prisma + better-sqlite3 create a library , failed while integrate into another project

throws error :

/node_modules/better-sqlite3/lib/database.js 48:44-63
Module not found: Error: Cannot find module 'drivelist/build/Release/drivelist.node'
Require stack:

icoco avatar Jul 28 '25 04:07 icoco

Can you please give more information about what you are trying to achieve? better-sqlite3 does not have any dependencies to other native modules like drivelist. Judging from the line of error, it looks like you might be calling the Database constructor with some bad options.

neoxpert avatar Jul 30 '25 18:07 neoxpert

thanks for reply, I think that this issue not relative to the better-sqlite, just the integrated project, frankly, I plan use it in a Theia extension , but looks the extension compile option is different that can not load better-sqlite directly, need do some change while build the extension

icoco avatar Jul 31 '25 02:07 icoco