Skip to content
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

bun init React + @mui/material #18128

Open
ipnet-me opened this issue Mar 12, 2025 · 0 comments
Open

bun init React + @mui/material #18128

ipnet-me opened this issue Mar 12, 2025 · 0 comments
Labels
bake:dev hot-reloading dev server for client+server applications bug Something isn't working

Comments

@ipnet-me
Copy link

What version of Bun is running?

1.2.5

What platform is your computer?

Darwin 24.2.0 arm64 arm

What steps can reproduce the bug?

I tried to import a simple test app from vite project to Bun init + React

App.tsx

import { useState } from 'react'
import {Button, createTheme, ThemeProvider} from "@mui/material";

function App() {
  const [count, setCount] = useState(0)

  return (
    <ThemeProvider theme={createTheme({colorSchemes: {primary: 'blue'}}, {name: 'dark'})}>
      <div>
      </div>
      <h1>Vite + React</h1>
      <div >
        <button onClick={() => setCount((count) => count + 1)}>
          count is {count}
        </button>
        <p>
          Edit <code>src/App.tsx</code> and save to test HMR
        </p>
      </div>
      <p>
        <Button variant={'contained'}>Read the docs</Button>
      </p>
    </ThemeProvider>
  )
}

export default App

package.json

{
  "name": "react-spa",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "dev": "bun './**/*.html'",
    "build": "bun build --target=browser App.html --outdir dist"
  },
  "dependencies": {
    "@emotion/react": "^11.14.0",
    "@emotion/styled": "^11.14.0",
    "@mui/material": "^6.4.7",
    "react": "19",
    "react-dom": "19"
  }
}

I can not start app, with bun run dev

Image

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@ipnet-me ipnet-me added bug Something isn't working needs triage labels Mar 12, 2025
@paperclover paperclover added bake:dev hot-reloading dev server for client+server applications and removed needs triage labels Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bake:dev hot-reloading dev server for client+server applications bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants