how do i setup and use node:crypto in my workers?

I added

compatibility_flags = [ "nodejs_compat" ]

Im getting build errors when i use

import crypto from 'node:crypto'
Screenshot_2024-04-23_031831.webp
Was this page helpful?