-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Chunk names with %20 after build (3.3.0-beta.5) #8270
Comments
jm-sky
changed the title
Chunk names with %20 after build
Chunk names with %20 after build (3.3.0-beta.5)
May 10, 2023
I can't reproduce this from your linked reproduction. Maybe this only happens on Windows? |
Should be fixed with |
Thank You! |
9 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Vue version
3.3.0-beta.5
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-bttikt?file=src/components/GenericComponent.vue
Steps to reproduce
When using generic component (vuejs/rfcs#436, vuejs/language-tools#2545), I got invalid chunk names (with
%20
) afternpm run build
in/dist/assets
folder.Example chunk name created from component using:
<script setup lang="ts" generic="TModel extends BaseModelWithBankAccounts">
Example:
BankAccountsList.vue_vue_type_script_setup_true_generic_TModel%20extends%20BaseModelWithBankAccounts_lang-147e6095.js
After replacing
(space) in file names - everything works fine.
%20
withI've tried to reproduce the error but haven't succeeded yet.
It might occure when using generic component in many routes, so it would be placed in its own chunk.
What is expected?
Chunks should not have
space or dash
%20
in their names, but rather-
.What is actually happening?
I got chunks with
%20
in their names.Browser is probably looking for a file with spaces, but there is a file with
%20
, and I got 404 not found error.Example:
dist/assets/BankAccountsList.vue_vue_type_script_setup_true_generic_TModel%20extends%20BaseModelWithBankAccounts_lang-147e6095.js
dist/assets/GenericComponent.vue_vue_type_style_index_0_lang-3f2af169.js
(simpler variant)System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: