class $7fe8e3ea572bda7a$export$11bbed9ee0012c13 extends $8zHUo$react.Component {
gcmm opened this issue · 18 comments
Same error, waiting a solution😂
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.
This is happening in v 6.1.4.
Reverting back to 6.1.1 fixed it for me.
This is happening in v 6.1.4. Reverting back to 6.1.1 fixed it for me.
yeah, just add this package to the babel compilation, it will be works.
@talhaanees i have changed my version to 6.1.1 still it is giving me the same error. Any suggestions Please @GloryXia?
@andresin87 I also encounter this problem, please verify and fix it
This is happening in v 6.1.4. Reverting back to 6.1.1 fixed it for me.
yeah, just add this package to the babel compilation, it will be works.
@GloryXia How can you do this ?
Same issue here.
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..
I can confirm that @zoomtronic solution works.
@talhaanees i have changed my version to 6.1.1 still it is giving me the same error. Any suggestions Please @GloryXia?
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
This is happening in v 6.1.4. Reverting back to 6.1.1 fixed it for me.
yeah, just add this package to the babel compilation, it will be works.
@GloryXia How can you do this ?
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.
谢谢老铁
Downgrading to 6.1.1 worked!
✅ "react-sortablejs": "6.1.1"
❌ "react-sortablejs": "^6.1.1"
I confirm this issue, it made me mad from days and thought it was coming from spfx build chain. (I upgrade a project from spfx 1.12 to 1.16).
Downgrading to
6.1.1worked!
✅"react-sortablejs": "6.1.1"
❌"react-sortablejs": "^6.1.1"
WORK
