Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug report] Could not resolve "./bpmn-elements-adapter" from "./bpmn-elements-adapter?commonjs-external" #1296

Closed
alwaysIn-lilijie opened this issue Aug 21, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@alwaysIn-lilijie
Copy link

问题描述

请用简洁的语言描述你遇到的 bug,至少包括以下部分,如提供截图请尽量完整:

主体框架使用的nuxt3.0,打包方式用的vite,在npm run build的时候提示Could not resolve "./bpmn-elements-adapter" from "./bpmn-elements-adapter?commonjs-external" ,extension/es下面的文件基本上都会提示找不到

最简复现

猜测原因是不支持vite,commonjs,现在不知道怎么解决,dev环境是正常的,打包编译就出错了

相关信息 context

LogicFlow Version:1.2.10
Node Version:19
Platform:

@github-actions
Copy link

github-actions bot commented Aug 21, 2023

该 issue 作为 Bug Report 所提供信息的不充分,被暂时关闭了。请修改 issue 以提供最小可复现示例(可以通过以下方式:1. 在任意在线编码平台如 codesanbox 编写示例。将其保存到自己空间,然后贴上链接。2. 在自己 github 中创建一个最简单的示例,然后贴上 github 链接。3. 删除项目中的 node_modules 部分,打包项目,并拖拽到 issue 输入框中上传(或提供远程可下载地址))来重启 issue。

@alwaysIn-lilijie
Copy link
Author

image

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2023
@wumail
Copy link
Collaborator

wumail commented Aug 21, 2023

1.2.10?

@wumail wumail reopened this Aug 21, 2023
@alwaysIn-lilijie
Copy link
Author

@wumail 是的,昨天是1.2.10,刚刚卸载过后安装了最新的版本, "@logicflow/core": "^1.2.12",
"@logicflow/extension": "^1.2.13",现在报错RollupError: Could not resolve "./bpmn-elements-adapter" from "./bpmn-elements-adapter?commonjs-external"

@alwaysIn-lilijie
Copy link
Author

找到临时解决办法了。import { Group } from '@logicflow/extension/es/materials/group';import { MiniMap } from '@logicflow/extension/es/components/mini-map';找到准确的路径这样引入就可以了

@boyongjiong boyongjiong added the bug Something isn't working label Aug 22, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
@boyongjiong boyongjiong reopened this Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants