nextjs-auth0
nextjs-auth0 copied to clipboard
Named export from package.json 4.0.3
Checklist
- [x] The issue can be reproduced in the nextjs-auth0 sample app (or N/A).
- [x] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- [x] I have looked into the API documentation and have not found a suitable solution or answer.
- [x] I have searched the issues and have not found a suitable solution or answer.
- [x] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [x] I agree to the terms within the Auth0 Code of Conduct.
Description
After upgrading to 4.0.3, i get the warning
./node_modules/@auth0/nextjs-auth0/dist/server/auth-client.js Should not import the named export 'version' (imported as 'version') from default-exporting module (only default export is available soon)
Reproduction
Upgrade to @auth0/nextjs-auth0 4.0.3
Additional context
This could probably be solved by using a default import from package.json in auth-client.js and getting the version from the object
nextjs-auth0 version
4.0.3
Next.js version
15.2.2
Node.js version
v20.18.3