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

Open
#736 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, react
Domain
frontend

Research direction

Reproduce the compilation failure reported in build/cjs/Draggable.js around line 78, using the react-data-grid and react-resizable dependency chain described in the issue. Trace the 4.4.6 build output and verify that the affected consumer projects compile without the unexpected-token error.

Written by the indexing model from the issue text.

Description

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

Dominant language
JavaScript
Stars
9.3k
Forks
1k
Avg merge
3d 8h
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-grid-layout/react-draggable

All issues in react-grid-layout/react-draggable

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.