lee
lee
CCConvex Community
Created by lee on 9/19/2023 in #support-community
Could not resolve "node:crypto"
convex/shard.ts:3:24:
3 │ import * as crypto from 'node:crypto';
╵ ~~~~~~~~~~~~~

The package "node:crypto" wasn't found on the file system but is built into node. Are you trying
to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
convex/shard.ts:3:24:
3 │ import * as crypto from 'node:crypto';
╵ ~~~~~~~~~~~~~

The package "node:crypto" wasn't found on the file system but is built into node. Are you trying
to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
how can i use nodejs packages on the server side? i see it says platform: node but i dont see this config in the dashboard @CodingWithJamal
24 replies