alibaba / lowcode-engine

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

尝试自定义出码规则,出现 caught SyntaxError: Invalid or unexpected token 错误 #2130

Open wojiaofengzhongzhuifeng opened 1 year ago

wojiaofengzhongzhuifeng commented 1 year ago

Describe the bug (required) / 详细描述 bug(必填)

尝试对出码内容做自定义处理,点击出码按钮提示 caught SyntaxError: Invalid or unexpected token 错误


To Reproduce (required) / 如何复现 bug?(必填,非常重要)

Steps to reproduce the behavior: / 详细复现步骤:

  1. git clone git@github.com:wojiaofengzhongzhuifeng/gate-lowcode-code-generator-2.git
  2. yarn
  3. yarn build
  4. node bin/lowcode-code-generator.js -i gate-schema.json -o generated -s icejs
  5. 检查 generated/src/pages/$/index.jsx ,发现存在 自定义的lang_string 函数,符合预期 image
  6. git clone git@github.com:wojiaofengzhongzhuifeng/lowcode-solution-gate-lowcode-output-plugin-1.git
  7. 修改 package.json 的依赖项 gate-lowcode-code-generator-2 为 1.1.2
  8. yarn
  9. yarn start
  10. 进入到 http://localhost:3333/ ,点击右上角的出码按钮,可以正常出码
  11. 修改 package.json 的依赖项 gate-lowcode-code-generator-2 为 1.1.5
  12. yarn
  13. yarn start
  14. 进入到 http://localhost:3333/ ,点击右上角的出码按钮,提示如下错误 image

Environments (please complete the following information) (required): / 请提供如下信息(必填)

Additional context (optional) / 更多额外信息(可选)

LeoYuan commented 1 year ago

先确保 Node 上能够跑通吧,浏览器端的能力不确保

LeoYuan commented 1 year ago

image

目前根本没有 1.1.5 版本,再检查下