-
Notifications
You must be signed in to change notification settings - Fork 429
Closed
Labels
Description
Checklist
- The issue can be reproduced in the nextjs-auth0 sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
I try to use in server with express and ts-node.
When I use import { auth0 } from "@/lib/auth0"
, will get error MODULE_NOT_FOUND
.
If I use import { auth0 } from "../../src/lib/auth0"
will get error ERR_PACKAGE_PATH_NOT_EXPORTED
Link to Auth0 community
https://community.auth0.com/t/error-when-migrate-to-nextjs-auth0-v4-1-cannot-find-module-lib-auth0/183972
Reproduction
my-next-express-app.zip
In the folder run yarn
then yarn dev
will get the error
Additional context
No response
nextjs-auth0 version
4.1
Next.js version
15.1.7
Node.js version
22.14.0