-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
mui
Version
6.1.1
Current Behavior
From node package, I get
react-dom-client.development.js:5020 Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Check the render method of `FieldTemplate`.
at createFiberFromTypeAndProps (react-dom-client.development.js:5020:28)
at createFiberFromElement (react-dom-client.development.js:5034:14)
at reconcileChildFibersImpl (react-dom-client.development.js:6919:31)
at eval (react-dom-client.development.js:7097:33)
at reconcileChildren (react-dom-client.development.js:9700:13)
at beginWork (react-dom-client.development.js:12048:13)
at runWithFiberInDEV (react-dom-client.development.js:871:30)
at performUnitOfWork (react-dom-client.development.js:17640:22)
at workLoopSync (react-dom-client.development.js:17468:41)
at renderRootSync (react-dom-client.development.js:17449:11)
If I copy the src folder over, it works.
I am running Linux Mint.
I have produced an example github repo so that you just need to uncomment the <Broken /> component to see the error appear.
Expected Behavior
Running properly straight from npm.
Steps To Reproduce
- Clone github repo.
npm installnpm start- Go to
src/ui/BaseView.tsxand uncomment the{/* <Broken /> */}to throw error.
Environment
- OS: Linux Mint 22.2 Cinnamon
- Node: 22.14.0
- npm: 10.9.2Anything else?
No response