jspm / generator

JSPM Import Map Generator
Apache License 2.0
166 stars 21 forks source link

Updating to @mui/material 5.8 results in missing exports #129

Closed zachsa closed 2 years ago

zachsa commented 2 years ago

I see there is an overrides project - please let me know if I should submit this there.

https://ga.jspm.io/npm:@mui/system@5.8.0/_/93e34170.js:1
import e from"prop-types";import t from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import o from"@babel/runtime/helpers/esm/extends";import*as s from"react";import n from"clsx";import{unstable_capitalize as r,getDisplayName as i,unstable_generateUtilityClass as a,unstable_composeClasses as c,unstable_generateUtilityClasses as p}from"@mui/utils";import l from"../esm/useThemeProps/index.js";import m from"@mui/styled-engine";import{c as d}from"./1e030ded.js";import{h as u}from"./ee7ace20.js";import{jsx as h}from"react/jsx-runtime";const f=["variant"];function isEmpty$1(e){return 0===e.length}
                                                                                                                                                                                                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: The requested module '@mui/utils' does not provide an export named 'unstable_generateUtilityClass'

(works in @mui/material v5.7)

guybedford commented 2 years ago

If you look at https://ga.jspm.io/npm:@mui/utils@5.8.0/index.js, @mui/utils@5.8.0 definitely exports unstable_generateUtilityClass. Make sure your import map is referencing the right version of @mui/utils. If it's the wrong version then it may be a simple package management versioning issue which would be good to determine, from how you are running the upgrade here.

zachsa commented 2 years ago

Thank you - it's working now. I may have been caching incorrectly on the SSR side