nikku / didi

Dependency Injection for JavaScript
MIT License
93 stars 17 forks source link

The last version (10.2.1) lack lib directory by npm repository! #35

Closed tony2y closed 8 months ago

tony2y commented 8 months ago
image
tony2y commented 8 months ago

@nikku

nikku commented 8 months ago

@tony2y This is an absolute fine setup for a package. The package#json#exports field defines exports that will be used.

For a long time we only published dist folder: https://github.com/nikku/didi/commit/71c38d49266e1fbf6e3399a80858b6492e7dc17c.

tony2y commented 8 months ago

image But now there is an issue that when using diagram js in the Vue project, executing npm run dev will result in errors。

tony2y commented 8 months ago
image
tony2y commented 8 months ago

@nikku

nikku commented 8 months ago

@tony2y The issue is that you use an unsupported and outdated node version. Node 18 is in maintainance, and the didi baseline is node >= 16. Upon installing you should see a warning.

tony2y commented 8 months ago

Thank you for your answer!!