How do I use this library in nextjs #125
Replies: 4 comments
-
https://github.com/panva/jose#runtime-support-matrix Node.js LTS ^12.19.0 || ^14.15.0 is required for its module resolution features (Subpath exports). Likewise any tool that is resolving imports must support Subpath exports. |
Beta Was this translation helpful? Give feedback.
-
Updated to v12.20.0, removed node modules and reinstalled. Still the same problem, nextjs is not able to compile SSR code. |
Beta Was this translation helpful? Give feedback.
-
It seems that webpack 4.0 used by nextjs does not support this. |
Beta Was this translation helpful? Give feedback.
-
Using yarn |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use this library in API powered by nextjs but unfortunately I'm unable to import it.
Example:
Just throws an error
Module not found: Can't resolve 'jose/jwt/verify'
Versions:
Beta Was this translation helpful? Give feedback.
All reactions