Closed hairuiVR closed 11 months ago
You're likely trying to use better-sqlite3 in a browser. This is a Node.js library. It does not work in a browser.
You're likely trying to use better-sqlite3 in a browser. This is a Node.js library. It does not work in a browser.
how can i use can you give me a demo?
ERROR in ./node_modules/better-sqlite3/lib/database.js 3:11-24 Module not found: Error: Can't resolve 'fs' in '/Users/zhangha/Desktop/vue-c/hello-world/node_modules/better-sqlite3/lib' ERROR in ./node_modules/better-sqlite3/lib/methods/backup.js 4:11-24 Module not found: Error: Can't resolve 'fs' in '/Users/zhangha/Desktop/vue-c/hello-world/node_modules/better-sqlite3/lib/methods' ERROR in ./node_modules/bindings/bindings.js 6:9-22 Module not found: Error: Can't resolve 'fs' in '/Users/zhangha/Desktop/vue-c/hello-world/node_modules/bindings'