[icons-material] Importing from @mui/icons-material
throws error in Remix/Vite
#44265
Labels
@mui/icons-material
throws error in Remix/Vite
#44265
Search keywords
module, cjs, mjs, icons, vite, remix
Latest version
Steps to reproduce
Current behavior
Importing an icon from
@mui/icons-material
throws the following warning and error.Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
SyntaxError: Cannot use import statement outside a module
Expected behavior
Importing an icon from
@mui/icons-material
shouldn't throw an error.Context
We're trying to use
@mui/icons-material
in a Remix project.Your environment
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: