selfrefactor / rambda

Faster and smaller alternative to Ramda
https://selfrefactor.github.io/rambda
MIT License
1.65k stars 89 forks source link

v7.0.0 import fails w/ vite #614

Closed Uninen closed 2 years ago

Uninen commented 2 years ago

I have a project that uses Vite for bundling. Version v6.9.0 of rambda worked fine, but v7.0.0 produces following error:

error: [plugin: vite:dep-scan] Failed to resolve entry for package "rambda". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "rambda". The package may have incorrect main/module/exports specified in its package.json.

..and indeed, package.json seems to point to ./dist/index.esm.js which doesn't exist in dist.

HashDot commented 2 years ago

Same problem for me with next.js. Version 6.7.0 works fine.

selfrefactor commented 2 years ago

Thank you guys for bringing this up. I will try to publish a fix soon.

selfrefactor commented 2 years ago

I will close the issue, as version 7.0.1 is published with the fix. Please, let me know if the issue persist.

Uninen commented 2 years ago

Thank You for the swift response 👍