4.5 version causes breaking during startup

Open
#781 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
babel, javascript, react

Research direction

Reproduce the startup compilation failure and inspect node_modules/react-draggable/build/cjs/Draggable.js around line 260, along with the babel-loader processing shown in the report. Determine the compatibility issue causing the parse failure and verify that the application starts without this compile error.

Written by the indexing model from the issue text.

Description

`Failed to compile.

./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/{
return this.props?.nodeRef?.current ?? _reactDom.default.findDOMNode(this);

| }
| render() /: ReactElement/{`

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.