#`Cannot find module 'crypto'` is this a known issue?

3 messages · Page 1 of 1 (latest)

wet quiver
#

I have @types/node installed, and "types": ["node"] attached to compiler options in tsconfig file. Not sure what I'm missing.

Btw. the crypto library works at runtime, and I can use its API's. There's only type issue

wind sparrow
#

If add webstreams-polyfill package and import that in your index.astro should solve this problem

wet quiver
#

Is there a documentation shows how to import and use it?

Just imported as import 'web-streams-polyfill'; in my index.astro file and didn't solve