alibaba / alibaba/lowcode-engine
尝试自定义出码规则,出现 caught SyntaxError: Invalid or unexpected token 错误
Aperta
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 15.9k
- Fork
- 2.7k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Describe the bug (required) / 详细描述 bug(必填)
尝试对出码内容做自定义处理,点击出码按钮提示 caught SyntaxError: Invalid or unexpected token 错误
To Reproduce (required) / 如何复现 bug?(必填,非常重要)
Steps to reproduce the behavior: / 详细复现步骤:
- git clone git@github.com:wojiaofengzhongzhuifeng/gate-lowcode-code-generator-2.git
- yarn
- yarn build
- node bin/lowcode-code-generator.js -i gate-schema.json -o generated -s icejs
- 检查 generated/src/pages/$/index.jsx ,发现存在 自定义的lang_string 函数,符合预期
- git clone git@github.com:wojiaofengzhongzhuifeng/lowcode-solution-gate-lowcode-output-plugin-1.git
- 修改 package.json 的依赖项 gate-lowcode-code-generator-2 为 1.1.2
- yarn
- yarn start
- 进入到 http://localhost:3333/ ,点击右上角的出码按钮,可以正常出码
- 修改 package.json 的依赖项 gate-lowcode-code-generator-2 为 1.1.5
- yarn
- yarn start
- 进入到 http://localhost:3333/ ,点击右上角的出码按钮,提示如下错误
Environments (please complete the following information) (required): / 请提供如下信息(必填)
- AliLowCodeEngine version: [e.g. 1.0.0] / 低代码引擎版本
- AliLowCodeEngineExt version: [e.g. 1.0.0] / 低代码引擎扩展包版本
- Browser [e.g. chrome, safari] / 浏览器版本
- materials / plugins / tools / 其他物料 / 插件 / 工具链版本
Additional context (optional) / 更多额外信息(可选)
- gate-lowcode-code-generator-2@1.1.2 和 https://github.com/alibaba/lowcode-engine/tree/main/modules/code-generator 仓库一致,所以可以正常出码
- gate-lowcode-code-generator-2@1.1.5 添加了如下的自定义出码逻辑,commit,目前的表象是添加了这个逻辑之后,就会导致出码功能出现错误
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.