PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.57k stars 369 forks source link

[BUG] Removing some MUI component in example causes 'Uncaught TypeError: defaultShouldForwardProp is not a function' error #941

Open killinsun opened 7 months ago

killinsun commented 7 months ago

What happened?

I am installing Plasmo with MUI using examples/with-mui.

However, I got an error when I removed some components from example codes. And the extension popup doesn't show content other than a small white background paper. image

Before

import Button from "@mui/material/Button"
import Input from "@mui/material/Input"
import Link from "@mui/material/Link"
import Stack from "@mui/material/Stack"
import Typography from "@mui/material/Typography"
import { useState } from "react"

function IndexPopup() {
  const [data, setData] = useState("")

  return (
    <Stack minWidth={240}>
      <Typography variant="h6">
        Welcome to your{" "}
        <Link href="https://www.plasmo.com" target="_blank">
          Plasmo
        </Link>{" "}
        Extension!
      </Typography>
      <Input onChange={(e) => setData(e.target.value)} value={data} />
      <Button href="https://docs.plasmo.com" target="_blank">
        View Docs
      </Button>
    </Stack>
  )
}

export default IndexPopup

after(I removed

2nsobi commented 2 months ago

Still seeing this exact problem as well as of plasmo version 0.89.1

cyungmann commented 2 months ago

See also https://github.com/mui/material-ui/issues/43477