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 with @material-ui/core #41

Closed
noverby opened this issue Mar 29, 2021 · 11 comments
Closed

Error with @material-ui/core #41

noverby opened this issue Mar 29, 2021 · 11 comments

Comments

@noverby
Copy link

noverby commented Mar 29, 2021

With v30 https://esm.sh/@material-ui/core does not work anymore.

It returns:

/* esm.sh - error */
throw new Error("[esm.sh] " + "esbuild: No matching export in \"node_modules/@material-ui/core/esm/index.js\" for import \"default\"");
export default null;
ije added a commit that referenced this issue Mar 29, 2021
@ije
Copy link
Member

ije commented Mar 29, 2021

@noverby just fixed, please check again, thanks~ the latest updates get better compatibility for commonjs modules

@noverby
Copy link
Author

noverby commented Mar 29, 2021

Thanks @ije. Yes it fixed it, but there is still Internal Server Error's with:

  • react-dom
  • graphql
  • @apollo/client/utilities
  • @apollo/client/link/ws

@ije
Copy link
Member

ije commented Mar 29, 2021

v32 fixed i guess...

@noverby
Copy link
Author

noverby commented Mar 29, 2021

@ije now react broke. :)

@noverby
Copy link
Author

noverby commented Mar 29, 2021

/* esm.sh - error */
throw new Error("[esm.sh] " + "json: cannot unmarshal object into Go struct field NpmPackage.versions.exports of type string");
export default null;

@borsemayur2
Copy link

/* esm.sh - error */
throw new Error("[esm.sh] " + "json: cannot unmarshal object into Go struct field NpmPackage.versions.exports of type string");
export default null;

I'm getting the same error.

@FallingSnow
Copy link

Getting a similar error: no such file or directory

https://esm.sh/@fluentui/react

/* esm.sh - error */
throw new Error("[esm.sh] " + "open /tmp/esmd-build/018797da6af1b43a/node_modules/@fluentui/utilities/lib/dom/index.js: no such file or directory");
export default null;

@noverby
Copy link
Author

noverby commented Mar 30, 2021

React works now, but now react-dom broke again.

@noverby
Copy link
Author

noverby commented Mar 30, 2021

INFO Download https://esm.sh/@devexpress/dx-react-chart-material-ui
INFO Download https://esm.sh/_error.js?type=resolve&name=react-dom
ERROR Fetch module 'https://esm.sh/_error.js?type=resolve&name=react-dom': Internal Server Error
INFO Download https://esm.sh/_error.js?type=resolve&name=react-dom
ERROR Fetch module 'https://esm.sh/_error.js?type=resolve&name=react-dom': Internal Server Error
INFO Download https://esm.sh/_error.js?type=resolve&name=react-dom
ERROR Fetch module 'https://esm.sh/_error.js?type=resolve&name=react-dom': Internal Server Error
INFO Download https://esm.sh/_error.js?type=resolve&name=react-dom
ERROR Fetch module 'https://esm.sh/_error.js?type=resolve&name=react-dom': Internal Server Error

@ije
Copy link
Member

ije commented Mar 30, 2021

@noverby seems @devexpress/dx-react-chart-material-ui depends react-dom but did't declear it in the package.json, thanks for the detials, i will fix it asap 🙏

@ije
Copy link
Member

ije commented Aug 7, 2021

fixed in v44 branch

@ije ije closed this as completed Aug 7, 2021
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

4 participants