Closed dezerb closed 2 months ago
During import of auth.js there is exception while loading jose (version 5.5.0 is not affected by this)
│ ../../node_modules/jose/dist/node/esm/lib/encrypt_key_management.js │ Attempted import error: 'normalizePublicKey' is not exported from '../runtime/normalize_key.js' (imported as 'normalize'). │ │ Import trace for requested module: │ ../../node_modules/jose/dist/node/esm/lib/encrypt_key_management.js │ ../../node_modules/jose/dist/node/esm/jwe/general/encrypt.js │ ../../node_modules/jose/dist/node/esm/index.js │ ../../node_modules/@auth/core/jwt.js │ ../../node_modules/@auth/core/lib/init.js │ ../../node_modules/@auth/core/lib/index.js │ ../../node_modules/@auth/core/index.js │ ../../node_modules/next-auth/index.js
5.6.0
Browser
macos, node 20, next14
import { auth } from '@/auth';
sigh. Optimized too soon. Will fix shortly.
https://github.com/panva/jose/releases/tag/v5.6.1
Run npm upgrade jose to get the latest release.
npm upgrade jose
@panva thanks for fast fix, tested now it works like a charm 🎉
What happened?
During import of auth.js there is exception while loading jose (version 5.5.0 is not affected by this)
Version
5.6.0
Runtime
Browser
Runtime Details
macos, node 20, next14
Code to reproduce
Required