Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.4.6版本 react #732

Open
Tu-lele opened this issue Sep 28, 2023 · 7 comments
Open

4.4.6版本 react #732

Tu-lele opened this issue Sep 28, 2023 · 7 comments

Comments

@Tu-lele
Copy link

Tu-lele commented Sep 28, 2023

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
| }
| };

@Tu-lele
Copy link
Author

Tu-lele commented Sep 28, 2023

@matoilic

@apwelsh
Copy link

apwelsh commented Sep 28, 2023

This bug crashed our builds.
Any estimate on a fix?
We do not use this project directly, but we do use react-data-grid which relies on react-resizable which depends on this project which just broke.

@jonnypa
Copy link

jonnypa commented Sep 29, 2023

Hi, we are experiencing the same problem using react-resizable that depends on react-draggable.
We have fixed package version to 4.4.5 in project package.json as workaround. Please fix this issue.

@Tu-lele
Copy link
Author

Tu-lele commented Oct 1, 2023

Hi, we are experiencing the same problem using react-resizable that depends on react-draggable. We have fixed package version to 4.4.5 in project package.json as workaround. Please fix this issue.

hi, Do you want "react-draggable" in package.json: "4.4.5"

@normancarcamo
Copy link

I am experiencing this issue as well using the version 4.4.3, do we have any workaround for it?
I tried to use the version 4.4.5 and it didn't work either.

@hulkyuan
Copy link

"resolutions": {
"react-draggable":"4.0.3"
}
try this in your package.json. it works for me

@stone-hz
Copy link

stone-hz commented Dec 8, 2023

  {
    test: /\.js$/,
    loader: 'babel-loader',
    include: [
      resolve('src'),
      resolve(
        'node_modules/react-draggable/build/cjs'
      ),
    ],
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants