I'm trying to ` import { randomBytes } from 'crypt...
# functions
h
I'm trying to
import { randomBytes } from 'crypto'
in my local pages dev. My command line is:
Copy code
npx wrangler pages dev \
  --compatibility-flags="nodejs_compat" --experimental-local \
  --kv=SOMETHING --kv=TEST --kv=CONFIG \
  --do TEST_DO=TestDO@test-do-dev \
  --d1=TEST_DB --persist \
  -- npm start
However, the build fails with message:
Copy code
The package "crypto" wasn't found on the file system but is built into node.
  Add the "nodejs_compat" compatibility flag to your Pages project to enable Node.js compatibility.
Any ideas what I'm doing wrong?