Back

Submod is not being found

  • 1
  • Web
  • Databases
  • Android
  • Cloud
  • Functions
Cheese Pizza
1 Jun, 2024, 05:47

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/server/src/function/task-trek-submodule-monogdb-connection/config/database.js' imported from /usr/local/server/src/function/src/main.js at new NodeError (node:internal/errors:405:5) at finalizeResolution (node:internal/modules/esm/resolve:327:11) at moduleResolve (node:internal/modules/esm/resolve:980:10) at defaultResolve (node:internal/modules/esm/resolve:1193:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39) at link (node:internal/modules/esm/module_job:75:36)

TL;DR
Developers are experiencing an error where the submod cannot be found. The specific module '/usr/local/server/src/function/task-trek-submodule-monogdb-connection/config/database.js' is not being located from the main.js file. This is resulting in the error [ERR_MODULE_NOT_FOUND]. The developers may need to check the file path and ensure that the module is correctly specified and accessible from the main file.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more