Monday, 11 October 2021

Cannot find module 'D:\@craco\craco\bin\craco.js', React, Craco

ERROR: I ran npm start and i get the error below:

Error: Cannot find module 'D:\@craco\craco\bin\craco.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:79:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

And even you can check the package.json

"scripts": {
    "start": "craco start",
    "build": "craco build",
    "test": "craco test",
    "eject": "react-scripts eject"
  },

I just changed the folder location to another folder and then today when I ran it gave this error

Yesterday it was working fine

TRIES

Re-Install Craco, No Luck

Re-Install React, No Luck



from Cannot find module 'D:\@craco\craco\bin\craco.js', React, Craco

No comments:

Post a Comment