Importing from @mui/icons-material
throws error
#44265
Labels
package: icons
Specific to @mui/icons
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
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: