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
It seems like there's an error with module resolution in your Node.js application. Specifically, it's unable to find the module posts.js within the routes directory
#188
Open
Harhsa opened this issue
Feb 18, 2024
· 0 comments
node:internal/modules/esm/resolve:263
throw new ERR_MODULE_NOT_FOUND(
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\91939\Desktop\Memories\server\routes\posts.js' imported from C:\Users\91939\Desktop\Memories\server\index.js
at finalizeResolution (node:internal/modules/esm/resolve:263:11)
at moduleResolve (node:internal/modules/esm/resolve:908:10)
at defaultResolve (node:internal/modules/esm/resolve:1131:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
at ModuleWrap. (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///C:/Users/91939/Desktop/Memories/server/routes/posts.js'
}
Node.js v21.6.2
[nodemon] app crashed - waiting for file changes before starting....
/// Everthing i have tried but no use guys help me please ////
The text was updated successfully, but these errors were encountered:
node:internal/modules/esm/resolve:263
throw new ERR_MODULE_NOT_FOUND(
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\91939\Desktop\Memories\server\routes\posts.js' imported from C:\Users\91939\Desktop\Memories\server\index.js
at finalizeResolution (node:internal/modules/esm/resolve:263:11)
at moduleResolve (node:internal/modules/esm/resolve:908:10)
at defaultResolve (node:internal/modules/esm/resolve:1131:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
at ModuleWrap. (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///C:/Users/91939/Desktop/Memories/server/routes/posts.js'
}
Node.js v21.6.2
[nodemon] app crashed - waiting for file changes before starting....
/// Everthing i have tried but no use guys help me please ////
The text was updated successfully, but these errors were encountered: