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

I always get : An import map is added after module script load was triggered #16528

Closed
7 tasks done
its-dibo opened this issue Apr 25, 2024 · 1 comment
Closed
7 tasks done

Comments

@its-dibo
Copy link

Describe the bug

I created a blank index.html file and added a single snippet to dynamically load importmap

index.html

<script>
    let importMap = { };
    const script = document.createElement("script");
    script.type = "importmap";
    script.textContent = JSON.stringify(importMap);
     document.head .append(script);
  </script>

and served this file using vite

npx -y vite

but got this error

(index):12 An import map is added after module script load was triggered

I saw this issue but I'm not sure if it is relevant

Reproduction

.

Steps to reproduce

No response

System Info

OS: ubuntu 22
browser: brave v 1.65.122

Used Package Manager

npm

Logs

No response

Validations

@bluwy
Copy link
Member

bluwy commented Apr 29, 2024

Duplicate of #15192

@bluwy bluwy marked this as a duplicate of #15192 Apr 29, 2024
@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants