I'm running my worker locally with `yarn wrangler dev --node-compat` however I still get the error t

I'm running my worker locally with yarn wrangler dev --node-compat however I still get the error there are no matching exports even though they should be supported according to the docs (https://developers.cloudflare.com/workers/runtime-apis/nodejs/crypto/)

✘ [ERROR] No matching export in "node-modules-polyfills:crypto" for import "randomBytes"

    src/index.ts:38:9:
      38 │ import { randomBytes } from 'node:crypto';
         ╵          ~~~~~~~~~~~


Am I doing something wrong here?
Was this page helpful?