Popper.js:9 Uncaught TypeError: styled_default is not a function
See original GitHub issueDescribe the bug
Popper.js:9 Uncaught TypeError: styled_default is not a function repo https://github.com/mayankpandav/demo_mui_vite
Reproduction
Reproduction
System Info
clone repo try on new upgraded os e.g,ubuntu, windows,mac
same discussion available at mui repo
https://github.com/mui/material-ui/issues/32727
Used Package Manager
yarn
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it’s a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Issue Analytics
- State:
- Created a year ago
- Comments:29 (7 by maintainers)
Top Results From Across the Web
Popper.js:9 Uncaught TypeError: styled_default is not a function
Duplicates I have searched the existing issues Latest version I have tested the latest version Current behavior Popper.js:9 Uncaught ...
Read more >Popper styled_default is not a function Mui 5.6.0 [material-ui]
For me worked by change the ThemeProvider export path. after import { ThemeProvider } from '@mui/material/styles';. previously
Read more >Solved : uncaught typeerror i.createpopper is not a function
In this short post I am just going to tell you fast solution for s.createpopper is not a function in angular. Angular 14...
Read more >s.createPopper is not a function [#3221331] | Drupal.org
Uncaught TypeError : s.createPopper is not a function. I solved my problem by changing the library called in the contrib theme :.
Read more >Popper Functions, Lexicographical Probability, and Non ...
But it is not immediate from the Popper function axioms that they define a concept of conditional probability. It is difficult to.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
should I send my laptop to you to reproduce ? can you read the conversation again for the same its happening randomly while merging code or cloning repo for rare user I had same issue while upgrading my laptop and also I have tried multiple OS as a fresh version with virtual box its leading same error its upon you how you can reproduce can you create a VM machine and check with a newer OS. like ubuntu, Mac, Window I already mentioned same thing if you have read whole conversation carefully
For me the issue was the vite file system cache https://vitejs.dev/guide/dep-pre-bundling.html#file-system-cache
running with a --force got past the error, I assume it was pre caching from a previous branch which omitted the
styled
functionalityHope this helps
**EDIT actually this only seems to remove issue when switching between branches but didnt fix the overall issue
***EDIT replacing my individual imports
import Timeline from '@mui/lab/Timeline';
import TimelineItem from '@mui/lab/TimelineItem';
import TimelineSeparator from '@mui/lab/TimelineSeparator';
withimport { Timeline, TimelineItem, TimelineSeparator, } from '@mui/lab';
Has fixed it for me