transcend-io / penumbra

Encrypt/decrypt anything in the browser using streams on background threads.
https://penumbra-example.vercel.app/
Apache License 2.0
145 stars 19 forks source link

import { penumbra } from "@transcend-io/penumbra" does not work on vite #215

Closed akriafly closed 2 years ago

akriafly commented 2 years ago

I tried to import penumbra by import { penumbra } from "@transcend-io/penumbra"

vite:import-analysis throw [vite] Internal server error: Failed to resolve entry for package "@transcend-io/penumbra". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "@transcend-io/penumbra". The package may have incorrect main/module/exports specified in its package.json.

How do I fix this error?

bencmbrook commented 2 years ago

Apologies @akriafly - it looks like there was an issue with the build output of the version you're on. Upgrading to 5.3.0 should fix!