Closed Sylor-huang closed 2 years ago
You can't use better-sqlite3 in a browser. You need to do whatever vue tells you how to run server-only code (assuming this is even a SSR project). Like https://github.com/WiseLibs/better-sqlite3/issues/848 said this is not an issue with better-sqlite3.
My package.json is:
My node is
v16.14.0
andnode-gyp
had been installedWhen I import in js file, and I will get error
I had found a similar issue, but sorry, I don't know how it is resolved
https://github.com/WiseLibs/better-sqlite3/issues/848
Thanks for your help.