-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
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
Popper.js:9 Uncaught TypeError: styled_default is not a function #8308
Comments
Your reproduction works without any errors. |
Hello @mayankpandav. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
can you check the same thing on this conversation sometimes it works sometimes it's not, for many users Based on this scenario I'm not able to reproduce that's the problem sometimes it will work on your system sometimes it will not as specially it will work on every live IDE we have to check on localsystem |
@mayankpandav I checked that issue but didn't find a reproduction which will actually reproduce the error. Would you create a reproduction or point out which one reproduces it? |
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 |
Tested on macos and it's working for me too. And also the repro should remove using As mentioned, please provide a repro that reproduces the issue, ideally from stackblitz if that helps. There are already a few maintainers that failed to reproduce it, and the conversation doesn't help. |
hello @bluwy I'm saying online IDE will work I have tested on all the live IDE like stackblitz , codesandbox |
I'd much appreciate if there's a repro so that others can check out as well. I understand that it may be an edge case that's specific to your machine, but I won't be able to sync up and debug the issue for now. I'll make a comment at the other issue as others had this issue too and try to see if they can provide a repro as well. |
@bluwy repo is there did you check ?
|
yes and i don't see any errors with it |
then its hard for me but usually I have tried mac os, windows and ubuntu with virtual machine and every time I had same issue |
Hi, I'm facing this issue Possibly related: |
@mayankpandav Did you try to use MUI without icons? I have similar error only if using icons: mui/material-ui#32891 |
yes I have tried but no luck for me |
@mayankpandav are you using React 18? |
I have tried with the latest and also tried with 16,17 but no luck |
@bluwy can you check reproduction of similar error|? |
Would you provide the minimal reproduction of that? |
as per comment its stackblitz |
That is a reproduction and it does help. Minimal reproducible example would help more. |
I couldn't create a minimal reproducible example yet, sorry. However, removing some icons from the https://stackblitz.com/edit/github-xeswit-svpxve?file=src/_component/AppBar.tsx |
For me the issue was the vite file system cache running with a --force got past the error, I assume it was pre caching from a previous branch which omitted the Hope this helps **EDIT actually this only seems to remove issue when switching between branches but didnt fix the overall issue ***EDIT Has fixed it for me |
relating to @JoelBrenstrum solution If I switch FROM:
TO
It works. NOTE: doesn't work. Remix: 1.5.1 |
Just tried it. It seems to "fix" it. From import HomeTwoToneIcon from '@mui/icons-material/HomeTwoTone';
import ContactlessIcon from '@mui/icons-material/Contactless'; To import { HomeTwoTone as HomeTwoToneIcon } from '@mui/icons-material';
import { Contactless as ContactlessIcon } from '@mui/icons-material'; I had to remove/reinstall an |
not working for me |
@mayankpandav ok, what about what is your react version, mui versio etc? |
latest version |
@mayankpandav It would be good for people coming here from google to have more info. Like exact versions you are using. Latest doesn't really says much after few months |
Don't forget to mention which browser you used. System: |
Describe 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
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: