You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Checklist
Description
I try to use in server with express and ts-node.
When I use
import { auth0 } from "@/lib/auth0"
, will get errorMODULE_NOT_FOUND
.If I use
import { auth0 } from "../../src/lib/auth0"
will get errorERR_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
thenyarn dev
will get the errorAdditional context
No response
nextjs-auth0 version
4.1
Next.js version
15.1.7
Node.js version
22.14.0
The text was updated successfully, but these errors were encountered: