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

Some file in path contains non-ASCII characters returns 404 if root is set in v2.5.1 #4730

Closed
7 tasks done
xuld opened this issue Aug 25, 2021 · 4 comments
Closed
7 tasks done

Comments

@xuld
Copy link

xuld commented Aug 25, 2021

Describe the bug

当项目路径包含中文,且设置了root时,部分文件返回 404,在版本2.5.0没有这个问题

export default defineConfig({
   root: 'src' // 实际路径为 'D:/工作/src'
})

This bug is introduced in v2.5.1, downloading to v2.5.0 fixes this.

Reproduction

  1. install v2.5.1 and create a default project(vue-ts)
  2. set root config to src
  3. start dev server
  4. open any .html file which loads .vue file

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
    Memory: 1.61 GB / 7.85 GB
  Binaries:
    Node: 16.4.0 - C:\Program Files\nodejs\node.EXE
    npm: 7.21.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1023.0), Chromium (92.0.902.67)
    Internet Explorer: 11.0.19041.906
  npmPackages:
    @vitejs/plugin-vue: ^1.6.0 => 1.6.0
    vite: ^2.5.0 => 2.5.0

Used Package Manager

npm

Logs

Unrestricted file system access to "D:/%E9%A1%B9%E7%9B%AE/..."

Validations

@climba03003
Copy link

I am facing the same issue with path containing space.

@y1d7ng
Copy link
Contributor

y1d7ng commented Aug 26, 2021

May be caused by this commit, related pr #4728.

@y1d7ng
Copy link
Contributor

y1d7ng commented Aug 31, 2021

May be caused by this commit, related pr #4728.

v2.5.2 released.

@y1d7ng y1d7ng closed this as completed Aug 31, 2021
@climba03003
Copy link

Thanks, I can confirm it solved my problem.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants