didi / LogicFlow

专注于业务自定义的流程图编辑框架,支持实现脑图、ER图、UML、工作流等各种图编辑场景。A flow chart editing framework focusing on business customization.
https://site.logic-flow.cn
Apache License 2.0
8.25k stars 1.09k forks source link

fix(core): update import path to relative path style to remove compilation error in angular #1879

Closed touhidrahman closed 2 weeks ago

touhidrahman commented 2 weeks ago

When using @logicflow/core@2.0.4 with Angular v18 project, the angular compiler throws the following error:

✘ [ERROR] TS2307: Cannot find module 'src/model' or its corresponding type declarations. [plugin angular-compiler]

    node_modules/@logicflow/core/lib/util/graph.d.ts:1:32:
      1 │ import { EditConfigModel } from 'src/model';

This is because, for this particular file the import path was not given in relative style. This PR fixes this minor issue.

changeset-bot[bot] commented 2 weeks ago

⚠️ No Changeset found

Latest commit: ecb4c9db620bb119ad454082095781869a393f68

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

boyongjiong commented 2 weeks ago

Thanks for your PR, and welcome to continue to participate and contribute. 🎉