PlasmoHQ / plasmo

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

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

Open killinsun opened 3 months ago

killinsun commented 3 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