adrianhajdin / project_mern_memories

This is a code repository for the corresponding video tutorial. Using React, Node.js, Express & MongoDB you'll learn how to build a Full Stack MERN Application - from start to finish. The App is called "Memories" and it is a simple social media app that allows users to post interesting events that happened in their lives.
https://youtube.com/playlist?list=PL6QREj8te1P7VSwhrMf3D3Xt4V6_SRkhu
4.95k stars 1.83k forks source link

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 4 months ago

Harhsa commented 4 months ago

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