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

support safari with import map react from esm.sh #441

Open
7flash opened this issue Dec 17, 2024 · 0 comments
Open

support safari with import map react from esm.sh #441

7flash opened this issue Dec 17, 2024 · 0 comments

Comments

@7flash
Copy link

7flash commented Dec 17, 2024

given following html page:

  <!DOCTYPE html>
  <html lang="en">
    <head>
      <script async src="https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js"></script>
      <script type="importmap">
        {
          "imports": {
            "react": "https://esm.sh/[email protected]/?dev",
            "react-dom/client": "https://esm.sh/[email protected]/client/?dev"
          }
        }
      </script>
    </head>
    <body>
      <div id="root"></div>
      <script type="module">
        window.serverData = {};
      </script>
      <script type="module" src="/assets/app.js"></script>
    </body>
  </html>  

shows this in safari Version 16.4 (18615.1.26.11.22)

a problem repeatedly occurred (reload page)
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

1 participant