Skip to content

出码生成的icejs3项目运行时报错(ReferenceError: React is not defined) #2296

Description

@lilithyang2018

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

出码生成的icejs3项目运行时报错(ReferenceError: React is not defined)

Steps to reproduce the behavior: / 详细复现步骤:
1.下载这个https://alifd.alicdn.com/npm/@alilc/lowcode-code-generator@latest/example-schema.json文件
2. npx @alilc/lowcode-code-generator -i example-schema.json -o generated -s icejs3
2. cd generated
3. yarn
4. yarn start

Expected behavior (required) / 预期行为(必填,非常重要)

A clear and concise description of what did you expect to happen. / 请清晰和精确的描述你预期的行为
项目正常运行不报错

如果使用icejs solution,则生成的项目可以正常运行

Screenshots (optional) / bug 截图(可选)

Sceenshots for further information. (If applicable.) / 一些有用的截图将会帮助我们更好的明确以及定位问题
error

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

  • Browser [e.g. chrome, safari] / 浏览器版本 chrome Version 114.0.5735.199
    version

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions