You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://umijs.org/zh-CN/config#extrababelincludes export default { extraBabelIncludes: [ 'react-sortablejs' ], }
老铁如果你用的是umi.js, 把这个包加到babel 编译里面就行了,不知道为啥生产环境混进了没编译的代码。
Bro, if you are using umi.js, just add this package to the babel compilation. I don't know why the uncompiled code is mixed into the production environment.
I've just fixed the version in my package.json by removing the "^" in "^6.1.1"
run npm install and the 6.1.1 should be installed !
works for me since..
https://umijs.org/zh-CN/config#extrababelincludesexport default { extraBabelIncludes: [ 'react-sortablejs' ], } 老铁如果你用的是umi.js, 把这个包加到babel 编译里面就行了,不知道为啥生产环境混进了没编译的代码。 Bro, if you are using umi.js, just add this package to the babel compilation. I don't know why the uncompiled code is mixed into the production environment.
Activity
GloryXia commentedon Jun 1, 2022
Same error, waiting a solution😂
GloryXia commentedon Jun 1, 2022
https://umijs.org/zh-CN/config#extrababelincludes
export default { extraBabelIncludes: [ 'react-sortablejs' ], }
老铁如果你用的是umi.js, 把这个包加到babel 编译里面就行了,不知道为啥生产环境混进了没编译的代码。
Bro, if you are using umi.js, just add this package to the babel compilation. I don't know why the uncompiled code is mixed into the production environment.
talhaanees commentedon Jun 1, 2022
This is happening in v 6.1.4.
Reverting back to 6.1.1 fixed it for me.
GloryXia commentedon Jun 1, 2022
yeah, just add this package to the babel compilation, it will be works.
SowmyaDasari commentedon Jun 3, 2022
@talhaanees i have changed my version to 6.1.1 still it is giving me the same error. Any suggestions Please @GloryXia?
zb188 commentedon Jun 6, 2022
@andresin87 I also encounter this problem, please verify and fix it
zoomtronic commentedon Jun 8, 2022
@GloryXia How can you do this ?
natoze commentedon Jun 10, 2022
Same issue here.
zoomtronic commentedon Jun 10, 2022
I've just fixed the version in my package.json by removing the "^" in "^6.1.1"
run npm install and the 6.1.1 should be installed !
works for me since..
jsenosiain commentedon Jun 13, 2022
I can confirm that @zoomtronic solution works.
GloryXia commentedon Jun 16, 2022
I don't know, and I just compiled this node_module with Babel, in umi.js, it's easy to did this.this way:
https://umijs.org/zh-CN/config#extrababelincludes
GloryXia commentedon Jun 16, 2022
https://umijs.org/zh-CN/config#extrababelincludes here
1123612483 commentedon Jun 25, 2022
@andresin87
1123612483 commentedon Jun 27, 2022
谢谢老铁
temurih commentedon Jul 15, 2022
Downgrading to
6.1.1
worked!✅
"react-sortablejs": "6.1.1"
❌
"react-sortablejs": "^6.1.1"
3 remaining items