react-grid-layout / react-draggable

React draggable component
MIT License
9.04k stars 1.03k forks source link

4.4.6版本 react #732

Open Tu-lele opened 1 year ago

Tu-lele commented 1 year ago

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 commented 1 year ago

@matoilic

apwelsh commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

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