Cannot find module 'better-sqlite3'
See original GitHub issueDescribe the bug
Next js app breaks when installing wallet connect client "@walletconnect/sign-client": "^2.0.0-rc.0"
Error: Cannot find module 'better-sqlite3'
Require stack:
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/@walletconnect/keyvaluestorage/dist/cjs/node-js/index.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/@walletconnect/keyvaluestorage/dist/cjs/index.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/@walletconnect/core/dist/cjs/core.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/@walletconnect/core/dist/cjs/index.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/@walletconnect/sign-client/dist/cjs/client.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/@walletconnect/sign-client/dist/cjs/index.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/apps/next/.next/server/pages/sign-in.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/next/dist/server/require.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/next/dist/server/load-components.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/next/dist/build/utils.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/next/dist/build/output/store.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/next/dist/build/output/index.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/next/dist/cli/next-dev.js
- /Users/alejomendoza/Sites/skyhitz/skyhitz-expo-next/node_modules/next/dist/bin/next
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Cannot find module 'better-sqlite3' when running in Docker ...
The fix is to move better-sqlite3": "^7.5.0 from the devDependencies section to the dependencies section in the \packages\backend\packages.json ...
Read more >better-sqlite3 - npm
The fastest and simplest library for SQLite3 in Node.js. ... Start using better-sqlite3 in your project by running `npm i better-sqlite3`.
Read more >I've a problem for install better-sqlite3 - node.js - Stack Overflow
Error : Cannot find module 'better-sqlite3' Require stack: - C:\Users\Thomas\Documents\lester\node_modules\quick.db\bin\handler.js ...
Read more >Error about better-sqlite3 / node.js version - Glitch Support
Error about better-sqlite3 / node.js version ... the module (for instance, using npm rebuild or npm install ). ... Error: Cannot find module...
Read more >Better-SQLite3 - Zeltux
Better-Sqlite3 - TypeError: Cannot open database because the directory does not exist ... Within the root directory of the bot, create a folder...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@alejomendoza could you try with latest
rc.2
. Also,better-sqlite3
will only get used on server side (nodejs), so you shoulduseEffect
. Our wallet example actually uses this exact approach with nextjs https://github.com/WalletConnect/web-examples/tree/main/wallets/react-wallet-v2Closing since this dependency is no longer used.