Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when build version 4.1 #1972

Open
6 tasks done
NguyenCao-Glams opened this issue Mar 18, 2025 · 0 comments
Open
6 tasks done

Error when build version 4.1 #1972

NguyenCao-Glams opened this issue Mar 18, 2025 · 0 comments

Comments

@NguyenCao-Glams
Copy link

Checklist

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant