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

No script tag in HTML when using multiple entrypoints #16252

Closed
7 tasks done
Lenni009 opened this issue Mar 24, 2024 · 1 comment
Closed
7 tasks done

No script tag in HTML when using multiple entrypoints #16252

Lenni009 opened this issue Mar 24, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Lenni009
Copy link

Lenni009 commented Mar 24, 2024

Describe the bug

When using multiple HTML entrypoints with the build.rollupOptions.input array, no script tag is placed in the HTML when building the app.

This seems to only affect Windows. (it worked fine on a full Manjaro Linux installation, but was bugged under WSL)

The last good version was Vite 4.5.2.
The bug exists since Vite 5.0.0.

Reproduction

https://github.com/Lenni009/vite-script-bug

Steps to reproduce

  1. Clone the reproduction repo
  2. run npm i
  3. run npm run build
  4. See no script tags in the resulting html file, despite JS being used to place content on the page -> content is not loaded

Also check the readme of that repo for a more detailed walkthrough.

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 6.87 GB / 15.96 GB
  Binaries:
    Node: 20.11.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.3.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 123.0.6312.59
    Edge: Chromium (123.0.2420.53)
    Internet Explorer: 11.0.19041.3636
  npmPackages:
    vite: ^5.2.5 => 5.2.5

Used Package Manager

npm

Logs

No response

Validations

@sapphi-red
Copy link
Member

Duplicate of #15992

@sapphi-red sapphi-red marked this as a duplicate of #15992 Mar 25, 2024
@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2024
@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels Mar 25, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants