Critical 4.4.6 Bug: Module parse failed: Unexpected token (78:10)

Author: apwelshCreated Oct 15, 2023Updated Jul 11, 2025

Using react-data-grid, which depends on react-resizable, which depends on react-draggable Since your update to 4.4.6, react-data-grid and react-sizable are now broken, and cannot be compiled into our projects.

Error reported is:

in ./node_modules/_react-draggable@4.4.6@react-draggable/build/cjs/Draggable.js Module parse failed: Unexpected token (78:10) You may need an appropriate loader to handle this file type. | y: position.y, | prevPropsPosition: { | ...position | } | };

There is another bug report on the same issue, but it it not receiving any attention, so I opened up another with specifics on my issue

Source: react-grid-layout/react-draggable