nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.45k stars 278 forks source link

Error [ERR_MODULE_NOT_FOUND]: Cannot find module in JS #4244

Closed udaybagda closed 1 month ago

udaybagda commented 10 months ago

Details

node:internal/process/esm_loader:97 internalBinding('errors').triggerUncaughtException( ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'e:\myCode\movie app\review-backend\api\reviews.route.js' imported from e:\myCode\movie app\review-backend\server.js Did you mean to import ../../api/reviews.route.js? at new NodeError (node:internal/errors:399:5) at finalizeResolution (node:internal/modules/esm/resolve:326:11) at defaultResolve (node:internal/modules/esm/resolve:1153:11) at nextResolve (node:internal/modules/esm/loader:163:28) at ESMLoader.resolve (node:internal/modules/esm/loader:838:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) at ModuleWrap. (node:internal/modules/esm/module_job:77:40) at link (node:internal/modules/esm/module_job:76:36) { code: 'ERR_MODULE_NOT_FOUND' }

Node.js version

Node.js v18.16.1

Example code

No response

Operating system

Windows [Version 10.0.19045.3448]

Scope

runtime

Module and version

Not applicable.

preveen-stack commented 9 months ago

e:\myCode\movie app\review-backend\api\reviews.route.js

pls check the above file exists

yukiyeuem commented 9 months ago

bạn đã xử lý được lỗi này chưa?

udaybagda commented 9 months ago

bạn đã xử lý được lỗi này chưa?

Vâng, tôi đã giải quyết được vấn đề đó

github-actions[bot] commented 2 months ago

It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.

github-actions[bot] commented 1 month ago

It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.