Psifi-Solutions / csrf-csrf

A utility package to help implement stateless CSRF protection using the Double Submit Cookie Pattern in express.
Other
113 stars 17 forks source link

Package cannot be imported in TypeScript with `moduleResolution`: `NodeNext` #32

Closed Lordfirespeed closed 1 year ago

Lordfirespeed commented 1 year ago

image

The problem is in package.json - the types key is present, but your types path also needs to be in your exports["."] key.