dilanx / craco

Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
https://craco.js.org
Apache License 2.0
7.43k stars 499 forks source link

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

Open maaft opened 1 year ago

maaft commented 1 year ago

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?

stevenewald commented 1 year ago

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?