We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When building any NextJS app, validity of types will fail when using @auth0/auth0-react package.
@auth0/auth0-react
The package works fine in development, but the build will fail because of the clientId being
clientId
npm run build
> next build ▲ Next.js 14.2.3 - Environments: .env Creating an optimized production build ... ✓ Compiled successfully Linting and checking validity of types ..Failed to compile. ./node_modules/@auth0/auth0-spa-js/src/cache/shared.ts:45:27 Type error: Type 'string | undefined' is not assignable to type 'string'. Type 'undefined' is not assignable to type 'string'. 43 | const [prefix, clientId, audience, scope] = key.split('::'); 44 | > 45 | return new CacheKey({ clientId, scope, audience }, prefix); | ^ 46 | } 47 | 48 | /**
2.2.4
18.3.1
Chrome
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Checklist
Description
When building any NextJS app, validity of types will fail when using
@auth0/auth0-react
package.The package works fine in development, but the build will fail because of the
clientId
beingReproduction
@auth0/auth0-react
npm run build
Additional context
auth0-react version
2.2.4
React version
18.3.1
Which browsers have you tested in?
Chrome
The text was updated successfully, but these errors were encountered: