craco icon indicating copy to clipboard operation
craco copied to clipboard

`webpack`: TypeError: Cannot read properties of undefined (reading 'toString')

Open maaft opened this issue 2 years ago • 1 comments

What's happening

I transferred my code to a new fresh cra-repo with craco 7.1.

After issuing yarn start, I get below error, which seems to appear in the webpack module (not in my code).

With previous craco 6 and react-scripts 4 versions, everything works without issues.

hub/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

TypeError: Cannot read properties of undefined (reading 'toString')
    at hub/node_modules/webpack/lib/cache/PackFileCacheStrategy.js:1217:53

Any idea how I can debug this further?

maaft avatar Apr 29 '23 08:04 maaft

I'm unable to replicate with create-react-app 5.01 and craco 7.1. Can you please post your CRA version, as well as your craco config and any other modifications from the fresh cra-repo?

stevenewald avatar May 23 '23 20:05 stevenewald