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
bun build src/make-tls-client.ts
4 | import { createDecipheriv } from 'crypto'
^
error: Browser polyfill for module "node:crypto" doesn't have a matching export named "createDecipheriv"
at /home/user/tls/src/crypto/aes-cbc.ts:4:10
4 | import { createDecipheriv } from 'crypto'
^
note: Bun's bundler defaults to browser builds instead of node or bun builds. If you want to use node or bun builds, you can set the target to "node" or "bun" in the transpiler options.
at /home/user/tls/src/crypto/aes-cbc.ts:4:10
The text was updated successfully, but these errors were encountered:
To get this working at all in the browser I had to get rid of createDecipheriv , which can't be polyfilled because node:crypto can't be polyfilled in it's entirety.
I don't think onApplicationData(data) {...} is ever executed.
bun build
throws at importingcreateDecipheriv
The text was updated successfully, but these errors were encountered: