You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a lot of issues here, with text like Please install sqlite3 package manually or Unable to find dialect at sqlite3 (sqlite3 may be replaced with pg or any other, this does not matter, actually).
So this was also my case, I have faced with weird error, saying "sqlite3" package is missing. I have ensured it is in package.json, then checked node_modules/sqlite3 - all ok, but issue still present.
Almost all items in this repo contain advises with some magical steps like using npm rebuild, or steps leading to package reinstall. This obviously looks weird..
So, after several hours of debugging I have found a real RCA for the problem in my particular case. Instruction require("sqlite3") throwed an exception Cannot find module '/app/node_modules/sqlite3/lib/binding/napi-v6-linux-musl-arm64/node_sqlite3.node' (that was caused by wrong Dockerfile on my side, and using different distributive to compile and run application). But the problem is, _loadDialectModule hides an original exception thrown by node.js runtime.
So, please consider using following exception text: "Unable to load sqlite3 package due to error: Cannot find module '/app/node_modules/sqlite3/lib/binding/napi-v6-linux-musl-arm64/node_sqlite3.node'", and do not hide original exception, which may not be caused by simple absence of node_modules/sqlite3.
The text was updated successfully, but these errors were encountered:
There are a lot of issues here, with text like Please install sqlite3 package manually or Unable to find dialect at sqlite3 (sqlite3 may be replaced with pg or any other, this does not matter, actually).
So this was also my case, I have faced with weird error, saying "sqlite3" package is missing. I have ensured it is in package.json, then checked node_modules/sqlite3 - all ok, but issue still present.
Almost all items in this repo contain advises with some magical steps like using
npm rebuild
, or steps leading to package reinstall. This obviously looks weird..So, after several hours of debugging I have found a real RCA for the problem in my particular case. Instruction require("sqlite3") throwed an exception
Cannot find module '/app/node_modules/sqlite3/lib/binding/napi-v6-linux-musl-arm64/node_sqlite3.node'
(that was caused by wrong Dockerfile on my side, and using different distributive to compile and run application). But the problem is, _loadDialectModule hides an original exception thrown by node.js runtime.So, please consider using following exception text: "Unable to load sqlite3 package due to error: Cannot find module '/app/node_modules/sqlite3/lib/binding/napi-v6-linux-musl-arm64/node_sqlite3.node'", and do not hide original exception, which may not be caused by simple absence of node_modules/sqlite3.
The text was updated successfully, but these errors were encountered: