Skip to content

Error when build version 4.1 #1972

@NguyenCao-Glams

Description

@NguyenCao-Glams

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions