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

export 'default' (imported as 'classes') was not found in './modules/classes'

Open zhj1515112102 opened this issue 2 years ago • 5 comments

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

ERROR in ./node_modules/@alilc/lowcode-engine/es/engine-core.js 145:11-18 export 'default' (imported as 'classes') was not found in './modules/classes' (possible exports: DocumentModel, History, InnerNode, Node, NodeChildren, Project, Prop, Selection, SettingPropEntry, SettingTopEntry, SimulatorHost, Skeleton, SkeletonItem)

A clear and concise description of what the bug is. / 请提供清晰且精确的 bug 描述


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

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


English version example:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

中文版示例:

  1. 打开 demo
  2. 点击标题;
  3. 在右侧修改标题内容为「修改后的标题」;
  4. 渲染画布标题组件没有更新显示为「修改后的标题」;

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

A clear and concise description of what did you expect to happen. / 请清晰和精确的描述你预期的行为


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

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


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

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

(this information can be collected via the manual plugin / 版本信息可通过低代码用户手册插件收集)

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

Any other context of the problem here. / 可以追加更多的额外信息,帮助定位问题 我获取了github上的demo示例可以运行,但是当我将示例生成的schema和packages使用cra新项目打开加载就会出现错误。 运行方式按照官网给的使用渲染模块示例(https://lowcode-engine.cn/site/docs/guide/expand/runtime/renderer)。另外只渲染一个简单的button是可以成功的。我检查了network,显示packages都成功加载了 不知道是否是我使用不正确,请教一下如何能正确的在其他项目里渲染生成的json

zhj1515112102 avatar Dec 04 '23 09:12 zhj1515112102

这个即将在最新版本里面修复。请问一下是阿里内部的项目还是外部的项目,外部的项目我们不推荐使用相关的 API。

liujuping avatar Dec 04 '23 09:12 liujuping

已收到您的邮件!谢谢!

zhj1515112102 avatar Dec 04 '23 09:12 zhj1515112102

这个即将在最新版本里面修复。请问一下是阿里内部的项目还是外部的项目,外部的项目我们不推荐使用相关的 API。

你好,我这边在外部项目使用@alilc/lowcode-engine提供的init方法也遇到了这个问题,请问这个暂时可以怎么解决呢

wood3n avatar Dec 13 '23 08:12 wood3n

这个即将在最新版本里面修复。请问一下是阿里内部的项目还是外部的项目,外部的项目我们不推荐使用相关的 API。

你好,我这边在外部项目使用@alilc/lowcode-engine提供的init方法也遇到了这个问题,请问这个暂时可以怎么解决呢

1.等正式版本发布。2.使用最新的 beta 版本。3.使用之前的正式版本。

liujuping avatar Dec 13 '23 08:12 liujuping

这个即将在最新版本里面修复。请问一下是阿里内部的项目还是外部的项目,外部的项目我们不推荐使用相关的 API。

你好,我这边在外部项目使用@alilc/lowcode-engine提供的init方法也遇到了这个问题,请问这个暂时可以怎么解决呢

1.等正式版本发布。2.使用最新的 beta 版本。3.使用之前的正式版本。

@alilc/lowcode-engine改成 1.2.3-beta版本可以了 👍🏻

wood3n avatar Dec 13 '23 09:12 wood3n