alibaba / alibaba/lowcode-engine

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

Aperta
#2,130 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

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: / 详细复现步骤:

  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): / 请提供如下信息(必填)

  • AliLowCodeEngine version: [e.g. 1.0.0] / 低代码引擎版本
  • AliLowCodeEngineExt version: [e.g. 1.0.0] / 低代码引擎扩展包版本
  • Browser [e.g. chrome, safari] / 浏览器版本
  • materials / plugins / tools / 其他物料 / 插件 / 工具链版本
    image

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.