You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./node_modules/react-draggable/build/cjs/Draggable.js 260:22
Module parse failed: Unexpected token (260:22)
File was processed with these loaders:
./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| // the underlying DOM node ourselves. See the README for more information.
| findDOMNode() /: ?HTMLElement/{
Fixed as of 4.6.0. The build now targets ES2019, so the shipped CJS output no longer contains optional chaining or ??, the syntax your babel-loader failed to parse. Upgrade to 4.7.2 and drop the 4.4.6 pin.
Activity
chironemcgarry commentedon Jul 8, 2025
"resolutions": { "react-draggable": "4.4.6" },Fixed by reverting to the old version by adding this into my package.json file
STRML commentedon Sep 27, 2026
Fixed as of 4.6.0. The build now targets ES2019, so the shipped CJS output no longer contains optional chaining or
??, the syntax your babel-loader failed to parse. Upgrade to 4.7.2 and drop the 4.4.6 pin.