Description
Failed to compile.
To Reproduce
npm i react-sortablejs
Expected behavior
All work fine
Versions - Look in your package.json for this information:
react-sortable = ^6.1.4
react = ^16.13.1
Additional context
I'm submitting a bug report
Webpack Version:
4.44.1
Babel Core Version:
7.4.5
Babel Loader Version:
8.0.6
Please tell us about your environment:
OSX 12.4
Metadata
Metadata
Assignees
Labels
No labels

Activity
eeve commentedon Jul 18, 2022
same problem
arigon commentedon Jul 18, 2022
It's part of SortableJS: SortableJS/Sortable#2167
izhangchao commentedon Jul 21, 2022
same problem!how to resolve it?
eeve commentedon Jul 21, 2022
fallback to version 6.1.1
seanemery1 commentedon Jul 21, 2022
downgrading to react-sortablejs v6.1.1 worked for me!
LeonBlade commentedon Jul 25, 2022
We have this issue as well. Are there any plans on resolving this to use future version of this library? Thank you.
manuelsambade commentedon Aug 12, 2022
This issue still persists. I need to work with 6.1.4 because I'm already using react 18.
Do you have any solution for this besides downgrading to 6.1.1?
Thanks
fix: remove static class prop
welcomemax commentedon Aug 31, 2022
You need to add .babelrc to compile class props during build
I can’t build and check anything locally because you have complete chaos with dependencies (lock file is absolutely required)
fix: fix typescript version; react 18; add plugin-proposal-class-prop…
welcomemax commentedon Sep 1, 2022
Dealt with versions and build (lock file is absolutely required)
Please see the new PR - #247
pokroman commentedon Sep 1, 2022
Same problem!!! Please, resolve it as soon as possible!
welcomemax commentedon Jan 26, 2023
Any update? Or the project is not maintained anymore? Looks like we're should migrate to beautiful-dnd)
giabao2000 commentedon Mar 9, 2023
Reference: https://polotno.com/docs/non-react-integration
npm install parcel polotno react react-dom
I try to install polotno in nuxt 2 project but error Failed to compile
Please, help me! Thanks
andy7076 commentedon Jul 31, 2023
same issue +1
yangJinRui325 commentedon Aug 21, 2023
same issue +1
andreichirkov commentedon Nov 30, 2023
Downgrading to 6.1.1 worked!
✅ "react-sortablejs": "6.1.1"
❌ "react-sortablejs": "^6.1.1"
therutvikp commentedon Apr 14, 2026
Hey! I noticed you're using Polotno.
I recently built an open-source Polotno-compatible editor (OpenPolotno). Would love to know what challenges you're facing — trying to improve compatibility and flexibility.
GITHUB