Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@Harhsa
Copy link

Harhsa commented Feb 18, 2024

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 ////

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant