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

Error: Failed to resolve entry for package "@antv/g6-plugin". The package may have incorrect main/module/exports specified in its package.json #2577

Closed
1 task
tianxing0923 opened this issue Jan 20, 2021 · 1 comment · Fixed by #2614

Comments

@tianxing0923
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://github.com/antvis/G6/tree/master/packages/plugin

Steps to reproduce

使用vite构建工具,启动报 Failed to resolve entry for package "@antv/g6-plugin". The package may have incorrect main/module/exports specified in its package.json 错误

去node_modules/@antv/g6-plugin查看package.json,里面有配置"module": "es/index.ts",但目录下没有es文件夹

Environment Info
g6 4.1.4
System Windows 10
Browser Chrome 87.0.4280.141
Yanyan-Wang added a commit that referenced this issue Jan 28, 2021
: #2613; fix: drag-canvas with shouldBegin false, closes: #2571; fix: pack plugin with es module, closes: #2577; feat: dijkstra with multiple shortest paths, closes: #2297; fix: setMode while the delegates of brush-select and drag-node is on the canvas, closes: #2607; docs: update the english TimeBar docs, closes: #2597; fix: TimeBar time point switch text configurable, closes: #2597;
@Yanyan-Wang Yanyan-Wang mentioned this issue Jan 28, 2021
Yanyan-Wang added a commit that referenced this issue Jan 29, 2021
: #2613; fix: drag-canvas with shouldBegin false, closes: #2571; fix: pack plugin with es module, closes: #2577; feat: dijkstra with multiple shortest paths, closes: #2297; fix: setMode while the delegates of brush-select and drag-node is on the canvas, closes: #2607; docs: update the english TimeBar docs, closes: #2597; fix: TimeBar time point switch text configurable, closes: #2597;
@Yanyan-Wang
Copy link
Contributor

fixed by v4.1.5

Yanyan-Wang added a commit that referenced this issue Feb 1, 2021
: #2613; fix: drag-canvas with shouldBegin false, closes: #2571; fix: pack plugin with es module, closes: #2577; feat: dijkstra with multiple shortest paths, closes: #2297; fix: setMode while the delegates of brush-select and drag-node is on the canvas, closes: #2607; docs: update the english TimeBar docs, closes: #2597; fix: TimeBar time point switch text configurable, closes: #2597;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants