bswen / bswen-project

code for www.bswen.com
http://www.bswen.com
Apache License 2.0
20 stars 34 forks source link

2021/12/how-to-solve-Cannot-find-module-errow-when-using-react #20

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

others-How to solve 'Cannot find module' or MODULE_NOT_FOUND error when using 'npm start'

  1. Purpose

https://www.bswen.com/2021/12/how-to-solve-Cannot-find-module-errow-when-using-react.html

rzKMKzr commented 2 years ago

It still gives me no modules found.

Error: Cannot find module 'C:\Users\myname\Downloads\hashlips_art_engine-1.1.2_patch_v5\hashlips_art_engine-1.1.2_patch_v5\utils\utils\nftport\genericMetas.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }

talbizzz commented 2 years ago

this doesn't solve it, I still get the same error.

bswen commented 2 years ago

You should check your package.json, make sure the package is listed in the dependencies.