Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maaft opened this issue Apr 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@maaft
Copy link

maaft commented Apr 29, 2023

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 maaft added the bug Something isn't working label Apr 29, 2023
@stevenewald
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants