Error on nanoid
1Map opened this issue · comments
1map Spatial Solutions (Pty) Ltd commented
My node version: v20.11.0
My npm version: 10.3.0
My nanoid version: 5.0.4
Error when I run:
Uncaught SyntaxError file:///C:/testapp/node_modules/nanoid/index.js:1
import { webcrypto as crypto } from 'node:crypto'
^^^^^^^^^
SyntaxError: The requested module 'node:crypto' does not provide an export named 'webcrypto'
Andrey Sitnik commented
Are you sure, that you use Node.js 20?