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

fix: react template add devDependencies for npm run lowcode:dev

Open stone-jin opened this issue 1 year ago • 1 comments

使用 npm init @alilc/element your-material-name 初始化出来用来开发组件物料的工程。运行npm run lowcode:dev会报错。

因为build.lowcode.js中使用插件:@alifd/build-plugin-lowcode,其templates中的preview.jsx和index.jsx使用了PR的内容。因为在运行lowcode:dev的时候,会拷贝到当前工程的.tmp目录下,但是初始化出来的项目中,并没有这些依赖,导致运行报错了。

stone-jin avatar May 19 '24 14:05 stone-jin

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar May 19 '24 14:05 CLAassistant