Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Failed to import - @mui/utils@6.4.1/es2022/esm/debounce #1061

Open
abcdw opened this issue Jan 29, 2025 · 0 comments
Open

Failed to import - @mui/utils@6.4.1/es2022/esm/debounce #1061

abcdw opened this issue Jan 29, 2025 · 0 comments
Labels
browser Not working in Browser

Comments

@abcdw
Copy link

abcdw commented Jan 29, 2025

Failing module

<html>
  <head>
    <script type="importmap">
      {
        "imports": {
          "@jbrowse/react-linear-genome-view": "https://esm.sh/gh/GMOD/jbrowse-components/products/jbrowse-react-linear-genome-view"
        }
      }
    </script>
  </head>

  <body>
    <script type="module">
      import {
        createViewState
      } from '@jbrowse/react-linear-genome-view'
    </script>
  </body>
</html>

Error message

After onload I got this:

This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
[tmp](http://localhost:3000/tmp/)
unreachable code after return statement
[trace.ts:10:31](https://esm.sh/mobx@6.13.5/esm/npm/mobx@6.13.5/node_modules/mobx/src/api/trace.ts)
Loading module from “https://esm.sh/@mui/utils@6.4.1/es2022/esm/debounce” was blocked because of a disallowed MIME type (“text/plain”).
[tmp](http://localhost:3000/tmp/)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://esm.sh/@mui/utils@6.4.1/es2022/esm/debounce. (Reason: CORS request did not succeed). Status code: (null).

Module source URI is not allowed in this document: “https://esm.sh/@mui/utils@6.4.1/es2022/esm/debounce”. [tmp](http://localhost:3000/tmp/)
Loading failed for the module with source “https://esm.sh/@mui/utils@6.4.1/es2022/useId.mjs”. [tmp](http://localhost:3000/tmp/)

Additional info

  • Browser info: LibreWolf 133.0-1
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
browser Not working in Browser
Projects
None yet
Development

No branches or pull requests

1 participant