lowcode-engine icon indicating copy to clipboard operation
lowcode-engine copied to clipboard

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

Open oneal32 opened this issue 3 years ago • 6 comments

复现截图

image

复现流程与链接

链接

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

复现流程

  • 1、拖动加入 高级表格 查询筛选
  • 2、出码,下载代码,解压
  • 3、进入代码目录,执行 npm install npm start,报错如下:
 error  in ./node_modules/react-sortablejs/dist/index.js

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

oneal32 avatar Jul 08 '22 09:07 oneal32

@Clarence-pan 帮忙看一下哈~

LeoYuan avatar Jul 08 '22 09:07 LeoYuan

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

bequite1991 avatar Jul 14 '22 00:07 bequite1991

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

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

iqinning avatar Jul 20 '22 12:07 iqinning

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

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

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

oneal32 avatar Jul 26 '22 06:07 oneal32

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.

github-actions[bot] avatar Aug 06 '22 02:08 github-actions[bot]

同样的问题

lzek avatar Aug 09 '22 02:08 lzek