question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

_plugin-vue_export-helper js file cant not be access with Github Pages(404)

See original GitHub issue

Describe the bug

@vitejs/plugin-vue3.0.0 change the name of the export file, that adds the _, image 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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
sapphi-redcommented, Jul 17, 2022

When \0plugin-vue:export-helper is extracted as a chunk, \0 will be replaced with _ by sanitizeFileName. We could use output.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.

0reactions
cloudhao1999commented, Jul 20, 2022

When \0plugin-vue:export-helper is extracted as a chunk, \0 will be replaced with _ by sanitizeFileName. We could use output.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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found