alibaba / lowcode-engine

An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系
https://lowcode-engine.cn
MIT License
14.62k stars 2.54k forks source link

lowcode-engine-demo 出码,下载的代码运行不起来(react-sortablejs异常) #794

Closed oneal32 closed 1 year ago

oneal32 commented 2 years ago

复现截图

image

复现流程与链接

链接

https://lowcode-engine.cn/demo/index.html

复现流程

Module parse failed: Unexpected token (160:55) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | }; | class $7fe8e3ea572bda7a$export$11bbed9ee0012c13 extends (0, $8zHUo$react.Component) {

/* eslint-disable-next-line */ static defaultProps = {

| clone: (item)=>item | };



## 期望结果
出码后下载的代码,可以运行起来,并在浏览器看到页面。

## 环境信息
- node v10.15.3
- npm: '6.4.1'
- 引擎版本 1.0.11
- ext 版本 1.0.3
- 物料
  - moment﹫2.24.0
  - lodash
  - ﹫alifd/next﹫1.24.18
  - NextTable﹫1.0.1
  - ﹫alilc/lowcode-materials﹫1.0.2
  - ﹫alifd/pro-layout﹫1.0.1-beta.6
  - ﹫alifd/fusion-ui﹫1.0.5
LeoYuan commented 2 years ago

@Clarence-pan 帮忙看一下哈~

bequite1991 commented 2 years ago

我也是 遇到这个问题了 网上百度一圈说要改babel 配置 然而还是没有解决

iqinning commented 2 years ago

这个问题临时方案可以在 package.json 中固定 react-sortablejs 版本为 6.1.1

https://github.com/SortableJS/react-sortablejs/issues/240

oneal32 commented 2 years ago

这个问题临时方案可以在 package.json 中固定 react-sortablejs 版本为 6.1.1

https://github.com/SortableJS/react-sortablejs/issues/240

谢谢!用你的方法暂时解决了。 出码后,安装指定版本react-sortablejs: npm install react-sortablejs@6.1.1

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 2 days.

lzek commented 2 years ago

同样的问题