You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[plugin:vite:resolve] [plugin vite:resolve] Module "crypto" has been externalized for browser compatibility, imported by "/my-app/node_modules/bson/lib/bson.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
I am on @powersync/web v1.12.0. The docs say:
Note: As of @powersync/web@1.4.0, polyfills are bundled in the SDK and are no longer required.
However, this error seems to be related to an unpolyfilled crypto call in bson.
The text was updated successfully, but these errors were encountered:
Hello, I am setting up
@powersync/web
in a Vite application. I have followed the setup instructions closely.Here is my
vite.config.ts
:I see this output on every
vite build
:I am on
@powersync/web
v1.12.0. The docs say:However, this error seems to be related to an unpolyfilled
crypto
call inbson
.The text was updated successfully, but these errors were encountered: