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

Inability to use MUI icons and react-router vite plugin #12449

Closed
mikezx6r opened this issue Dec 3, 2024 · 2 comments
Closed

Inability to use MUI icons and react-router vite plugin #12449

mikezx6r opened this issue Dec 3, 2024 · 2 comments
Labels

Comments

@mikezx6r
Copy link

mikezx6r commented Dec 3, 2024

I'm using React Router as a...

framework

Reproduction

https://github.com/mikezx6r/react-router-mui-icon-issue

Start the app with the 'Check' icon present. Error as per screenshot.

Comment out 'Check' and app renders as expected

I will also be filing this on the MUI site, and will update with ticket # from there

System Info

I experienced this at work, which is a Mac M2 processor.

Currently on personal machine, and info below. Fails on both.

  System:
    OS: Windows 11 10.0.22631
    CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
    Memory: 21.75 GB / 31.81 GB
  Binaries:
    Node: 20.16.0 - ~\scoop\apps\nodejs-lts\current\node.EXE
    npm: 10.8.1 - ~\scoop\apps\nodejs-lts\current\npm.CMD
  Browsers:
    Edge: Chromium (129.0.2792.79)

Used Package Manager

npm

Expected Behavior

Site renders with 'Check' icon visible

Actual Behavior

Error. Unexpected token 'export'

@mikezx6r mikezx6r added the bug label Dec 3, 2024
@mikezx6r
Copy link
Author

mikezx6r commented Dec 3, 2024

Should have searched MUI first. This may be the same issue.

mui/material-ui#43980

@mikezx6r
Copy link
Author

mikezx6r commented Dec 3, 2024

My apologies. Reading further, and it definitely appears to be a MUI issue. I will close this issue.

@mikezx6r mikezx6r closed this as completed Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant