_plugin-vue_export-helper js file cant not be access with Github Pages(404)
See original GitHub issueDescribe the bug
@vitejs/plugin-vue3.0.0 change the name of the export file, that adds the _
,
that made the website built with Github Pages can not access because The Github Pages block the file starting with the underline character, Though it can be resolved to add the .nojekyll
file at the root space, it just not a good solution, I add the .nojekyll
file in my project, so the Reproduction link maybe not find the error. If the file is removed, it’ll make a 404 error.
Reproduction
https://cloudhao1999.github.io/cloud-app-admin
System Info
System:
OS: macOS 12.4
CPU: (8) arm64 Apple M1
Memory: 113.98 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.14.0/bin/yarn
npm: 8.13.2 - ~/.nvm/versions/node/v16.14.0/bin/npm
Watchman: 2022.02.07.00 - /opt/homebrew/bin/watchman
Browsers:
Firefox: 102.0.1
Safari: 15.5
Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it’s a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to fix HTTP 404 on Github Pages? - Stack Overflow
I had just one commit with all my files. I pushed an empty commit, refreshed the page and it worked. git commit --allow-empty...
Read more >How To Deploy Your Vue App to GitHub Pages - LearnVue
GitHub Pages is a great free option to deploy your Vue application. It's a static site hosting service that takes files straight from...
Read more >Blazor WASM 404 error and fix for GitHub Pages - elmah.io Blog
In this article we will look at the 404 error that often occurs when accessing a route directly on a GitHub Pages hosted...
Read more >Deploying React apps to GitHub Pages - LogRocket Blog
js file should look like the above code block. Since GitHub Pages does not support browser history, we're employing a HashRouter . Our...
Read more >How to Deploy a Routed React App to GitHub Pages
If you mark it as private, you won't be able to use GitHub Pages. ... Now, we can push all our project's files...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When
\0plugin-vue:export-helper
is extracted as a chunk,\0
will be replaced with_
bysanitizeFileName
. We could useoutput.sanitizeFileName
to change the behavior.One way to solve this is to change Vite’s default
output.sanitizeFileName
. But maybe we should just update the docs to make the difference between rollup less.Thanks! According to your suggestion, I rewrote the method and the problem was solved.