Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

webbertakken/repro-react-19-2-element-type-undefined

Repository files navigation

Repro React 19.2.0 / Next latest

This is a minimal reproduction of an issue with React 19.2.0 and Next.js latest version.

Issue: reactjs/react.dev#8034 Potential fix: reactjs/react.dev#8037


Uses the following code

import { useState, Activity } from "react";

//...

  const [isShowingSidebar, setIsShowingSidebar] = useState(true);

  <Activity mode={isShowingSidebar ? "visible" : "hidden"}>
    <Sidebar />
  </Activity>

to produce the error:

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. 

Error

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published