ericman314 / UnitMath

JavaScript library for unit conversion and arithmetic
Apache License 2.0
31 stars 7 forks source link

Bug: Error on expo app with metro on import #63

Open wcastand opened 6 months ago

wcastand commented 6 months ago

Seems to not be an issue in vitest but on metro, the bundler error. getting this error:

Unable to resolve "./src/Unit.js" from "../../node_modules/unitmath/index.js"

tried 1.1.0 and 1.0.0 version.

importing import unit from "unitmath/es/UnitMath" seems to work for now

ericman314 commented 1 month ago

I just published version 1.1.1 to fix a bundler problem with vite. Can you try version 1.1.1 and see if it fixes the error?

wcastand commented 1 month ago

tried to install the module on the expo app and 1.1.1 still has the error