Cannot file module ../build/better_sqlite3.node [SOLVED]


Hello, i need help for my project.
When I just woke up, I saw an error in my project.

throw err;

Error: Cannot find module ‘…/build/better_sqlite3.node’

at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/rbd/pnpm-volume/1f5d0e3c-b57d-430e-8063-e3c58a5830f5/node_modules/
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)

Can you help me to fix this error, please?
Sorry for bad grammar.
Thank you.


I got the same issue. But mine was cannot find module discord.js.


Hi @TheCreeperIndo, welcome to the Glitch Forums!

For both your problem and yours, @klerikdust, I would suggest running enable-pnpm in your project’s console (which you can reach from the Status pane revealed by clicking the Status button under your project’s name in the editor).

Let me know how you get on and we can troubleshoot further if need be.


Thank you for reply me, there are no changes to my project, the error was not fixed


That’s not necessarily relevant based on the way projects can be restored from cold backup. enable-pnpm will trigger a reinstall of the project’s node modules which may resolve the issue.


Fixed, thank you for helping me @cori :smile: