cheminfo / nmrium

React component to display and process nuclear magnetic resonance (NMR) spectra.
https://docs.nmrium.org
MIT License
55 stars 26 forks source link

vite v5.4.10 building for production... throws commonjs--resolver error #3278

Open tomlebl opened 1 month ago

tomlebl commented 1 month ago

When I am building my React frontend that is using nmrium@0.60.0 I am getting following error [commonjs--resolver] Missing "./lib-react-cjs/lib-react-tsx/nmr/Peaks" specifier in "cheminfo-font" package

cheminfo-font@1.13.1 is listed as nmrium@0.60.0 dependency.

The error disappears if I override dependencies with cheminfo-font@1.13.0

targos commented 1 month ago

This is already fixed in the main branch but we are unfortunately not ready to make a release. Overriding the dependency is probably the only thing to do in the mean time.

tomlebl commented 1 month ago

Thanks. No rush. Overriding seems to work OK for just now.