question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Popper.js:9 Uncaught TypeError: styled_default is not a function

See original GitHub issue

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

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:29 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
mayankpandavcommented, May 25, 2022

@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 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

2reactions
JoelBrenstrumcommented, Jun 3, 2022

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 functionality

Hope 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'; with import { Timeline, TimelineItem, TimelineSeparator, } from '@mui/lab';

Has fixed it for me

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found