79308692

Date: 2024-12-26 04:58:26
Score: 1.5
Natty:
Report link

Same, I encountered this issue too. It happens because your setup doesn’t support modern JS features like nullish coalescing (??) and optional chaining (?.). Here are quick workarounds for this:

  1. Eject CRA – Run npm run eject to customize Babel and Webpack, but note that you’ll manage all configurations yourself using .babelrc.
  2. Downgrade @mui/x-charts – Use an older version that works with your current setup.
  3. Upgrade react-scripts – This will update Babel and Webpack to support modern JS features without downgrading libraries.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jay Tan