What's that error?!

javascript
#1

Hi there, sorry for desturb, but idk why this error:

internal/modules/cjs/loader.js:584
    throw err;
    ^
Error: Cannot find module '../build/better_sqlite3.node'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/rbd/pnpm-volume/83a0eac0-68f0-4ef5-8b6f-31c89c81147d/node_modules/better-sqlite3/lib/database.js:5:21)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/rbd/pnpm-volume/83a0eac0-68f0-4ef5-8b6f-31c89c81147d/node_modules/better-sqlite3/lib/index.js:2:18)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/rbd/pnpm-volume/83a0eac0-68f0-4ef5-8b6f-31c89c81147d/node_modules/better-sqlite-pool/index.js:5:23)
    at Module._compile (internal/modules/cjs/loader.js:701:30)

Help plsss


MOD EDIT: formatting

#2

Lol, You dont have the module installed…

try these:
-Go in your glitch project console and write “npm i <module_name>” (i is short for install, you can use both )
-go into your package.json, and click npm modules then install the module from there

Hope this helped!

#3

Hi @Miky88, we see this problem with that particular module occasionally, and we’re not sure why that module in particular runs into problems. Typically running enable-pnpm in the console resolves it; can you give that a try?