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

Importing single huge file causes Vite to throw http2 error #8024

Closed
7 tasks done
XEngine opened this issue May 5, 2022 · 1 comment
Closed
7 tasks done

Importing single huge file causes Vite to throw http2 error #8024

XEngine opened this issue May 5, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@XEngine
Copy link

XEngine commented May 5, 2022

Describe the bug

I've made a icon component plugin with 10k+ icons for Vue 3 which is a private package for our company needs and licensed, I have bundled them into a single js file and it's 9mb+.

Before importing a icon from it everything was working completely but when I import that package and reloading my application, Vite begins to throw HTTP2 errors.

image

The files Vite try to load are exists and this issue is resolved after a page refresh. It only gives this errors on random refreshes or HMR reloads.

Reproduction

Cannot provide

System Info

System:
    OS: Windows 10 10.0.22598
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz
    Memory: 2.67 GB / 15.82 GB
  Binaries:
    Node: 16.12.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.4.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22598.200.0), Chromium (101.0.1210.32)
    Internet Explorer: 11.0.22598.1

Used Package Manager

npm

Logs

https://gist.github.com/XEngine/a10470c4f3bb6d07799bd432e34a652a

Validations

@sapphi-red
Copy link
Member

Closing as it is a duplicate of #4403.

@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels May 5, 2022
@github-actions github-actions bot locked and limited conversation to collaborators May 20, 2022
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