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

Error installing @mui/material #343

Open
MilanKovacic opened this issue Mar 9, 2024 · 3 comments
Open

Error installing @mui/material #343

MilanKovacic opened this issue Mar 9, 2024 · 3 comments

Comments

@MilanKovacic
Copy link

Sandbox:

https://jspm.org/sandbox#H4sIAAAAAAAAA82dXXPcthWG7/0rGOUm6Xh3LclJXcfySJYlW6nWUbxy0vamgyWhXVgkwQLgrtYZ//cC/Fp+4+ComelMYtki3vcBQAAEQIB49U3AfbVLqLdWUfj6yavyByXB6yee9yqiinj+mghJ1clBqu4mLw6yC4qpkL7+FGc/g1ez/N+VJCYRPTnYMLpNuFAHns9jRWNtsWWBWp8EdMN8Osn+8dRjMVOMhBPpk5CeHGrAq1keg1dLHuz0D+kLlqjXT7YsDvh2mgjuUym9E+8Pj8abl94fX79qTRlKR+KbyUT/8LyfFzdz7x2NqSCKC+8qMtHx5iTJrl4ETHmfPl6/1MlXiXw5m63KoNPPMommjM++/XT02/qf797cv50/E7vFl58Xnw7X/nylvgS3N7eLh5+v/WT+5f3F9vB2fnHF5me/vtn+9g/265kmTCYmMl4Rfc9k9MkBy+IQkSTLyD+yiBS/lAcvi1/oX51GKZtFRFGh80ZfOKjiSKrIxUn0shHu9Ifpof7vaKYzij7ocAfGq7D8+jSHSZ8ntMHqsa5d1gG+fRfyJQkXahdmytHISBMqmNB4xWJaxOhwVnfYR+9pjbGIiX+/JMLmvyTS2D6bPpssdWGbHr+YldIB4yxCF1l8bgTfsIBaIf2J6HPqZyY83t2xMMyTbaOlioWyunlNbb+/LlM8DK/pnXLz3uv6fVNJz7kujWkcIO5DTT1of02+7D7SO7do73WDvr/Ec811zI69btD3VpBY6haKx7gM2ev7EV+o4JO8uDlX85q21/x0SZY0nAmdPhZR3aqGCRVyRmU0I1JSoW7XTF7l7S/7Mh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789KQ4Jnw2834XTFGdchZ7uZnn84B6ayroU0/nmPYinqQJMfMrns5ImuWa/uWBTvyBR5QSbJnqazz21JqWLnk0pxnG57Eec9FpyFfflRH7/qfGzXw1K05/n+Wn0v8Xi1jNZa1+AAA=

@MilanKovacic
Copy link
Author

MilanKovacic commented Mar 9, 2024

Error seems to be originating at https://ga.jspm.io/npm:@mui/[email protected]/styles/styled.js, which imports https://ga.jspm.io/npm:@mui/[email protected]/dev.createStyled.js.

@mui/system does have the ESM build ("module": "./esm/index.js"), but it seems that JSPM is picking up the CJS build, and converting it. I can see overrides were added for previous version: https://github.com/jspm/overrides/blob/main/overrides.json#L641

image

Original createStyled.js (CJS format):

image

@MilanKovacic
Copy link
Author

Hi @guybedford, sorry for the ping. I would like to contribute the overrides for material package. Do you have any documentation on how these are done? If not, could you briefly describe it, and I can contribute both the documentation, and overrides.

@guybedford
Copy link
Member

@MilanKovacic overrides are documented at https://jspm.org/cdn/jspm-io#overrides. Yes this can be solved with an override. They are just package.json field replacements to get the right package configuration for JSPM. I'll gladly review any PR to resolve this interop issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants