esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

Failed to import @mui-ui/x-data-grid

Open AndCake opened this issue 4 years ago • 4 comments

Failing module

  • GitHub: https://github.com/mui-org/material-ui-x/
  • npm: https://www.npmjs.com/package/@mui/x-data-grid
import { DataGrid } from 'https://esm.sh/@mui/x-data-grid?bundle'

Error message

After running deno run I get this:

Uncaught TypeError: Import 'https://esm.sh/@mui/x-data-grid?bundle' failed: 500 Internal Server Error
    at async <anonymous>:2:23

When I open the URL in my browser, I get the following export returned:

/* esm.sh - error */
throw new Error("[esm.sh] " + "yarn add @mui/[email protected]: yarn add v1.22.11\ninfo No lockfile found.\n[1/4] Resolving packages...\n[2/4] Fetching packages...\nerror Could not write file \"/tmp/esm-build-07f0a9cf75a676b38639a2a3c5350fb59f50a614/yarn-error.log\": \"ENOSPC: no space left on device, open '/tmp/esm-build-07f0a9cf75a676b38639a2a3c5350fb59f50a614/yarn-error.log'\"\nerror An unexpected error occurred: \"ENOSPC: no space left on device, mkdir '/usr/local/share/.cache/yarn/v6/npm-@mui-x-data-grid-4.0.0-e9e9c33a8b86e85872c48f30f4a8de72ee819153-integrity'\".\ninfo Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.\n");
export default null;

I don't know if this is related, but yesterday it was not possible to load this library either due to HTTP error 524 (Cloudflare was not able to communicate with the backend server).

Additional info

  • esm.sh version: v50
  • Deno version: 1.13.2

AndCake avatar Sep 14 '21 06:09 AndCake

Looks like no disk space is left, @ije

v1rtl avatar Sep 14 '21 06:09 v1rtl

Screenshot 2021-09-15 at 02 43 27 @AndCake can you please try again? seems it works in my case.

ije avatar Sep 14 '21 18:09 ije

in v53 I am getting this:

➜ deno eval 'import { DataGrid } from \'https://esm.sh/@mui/x-data-grid?bundle\''
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/Checkbox.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/Tooltip.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/MenuList.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/ListItemIcon.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/Unstable_TrapFocus.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/TablePagination.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/ClickAwayListener.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/utils.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/TextField.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/FormControlLabel.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/Popper.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/FormControl.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/InputBase.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/Grow.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/Switch.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/IconButton.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/CircularProgress.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/styles.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/Select.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/NoSsr.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/Paper.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/Badge.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/InputLabel.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/MenuItem.js
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/Popper.d.ts
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/TextField.d.ts
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/Tooltip.d.ts
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/Button.d.ts
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/Select.d.ts
Download https://cdn.esm.sh/v50/@material-ui/[email protected]/InputBase.d.ts
error: Import 'https://cdn.esm.sh/v50/@material-ui/[email protected]/deno/Checkbox.js' failed: 500 Internal Server Error
    at https://cdn.esm.sh/v50/@mui/[email protected]/deno/x-data-grid.bundle.js:2:4006

v1rtl avatar Sep 25 '21 09:09 v1rtl

on v60, this happens:

/* esm.sh - error */
throw new Error("[esm.sh] " + "esbuild: Could not resolve \"@mui/material\"");
export default null;

v1rtl avatar Jan 04 '22 15:01 v1rtl