8000 Uncaught TypeError: l.current is null when using react-dom 18.3.1 · Issue #759 · auth0/auth0-react · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Uncaught TypeError: l.current is null when using react-dom 18.3.1 #759
Open
@tnguyen14

Description

@tnguyen14

Checklist

Description

React recently released a new version, 18.3.1. In this version of react-dom, using the Auth0Provider throws an error

Uncaught TypeError: l.current is null

Please note that the version of react doesn't matter, i.e. can use either 18.2.0 or 18.3.1. This error happens only with version 18.3.1 of react-dom.

Reproduction

import React from 'https://esm.sh/react@18.3.1';
import { render } from 'https://esm.sh/react-dom@18.3.1';
import { Auth0Provider } from 'https://esm.sh/@auth0/auth0-react@2';

render(
    <Auth0Provider
      domain="auth0.com"
      clientId="<client-id>"
      cacheLocation="localstorage"
      useRefreshTokens={true}
      useRefreshTokensFallback={true}
      authorizationParams={{
        redirect_uri: window.location.href,
        audience: "<api-audience>",
        scope: "openid profile email"
      }}
    >
        <div>Hello World</div>
    </Auth0Provider>,
    document.querySelector(".main")
);

Additional context

No response

auth0-react version

2.2.4

React version

18.3.1

Which browsers have you tested in?

Chrome, Edge, Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0