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

.map file that is in fsServe.root is defined as one that is outside #3346

Closed
6 tasks done
cawa-93 opened this issue May 11, 2021 · 0 comments · Fixed by #3350
Closed
6 tasks done

.map file that is in fsServe.root is defined as one that is outside #3346

cawa-93 opened this issue May 11, 2021 · 0 comments · Fixed by #3350

Comments

@cawa-93
Copy link
Contributor

cawa-93 commented May 11, 2021

Describe the bug

After upgrading to 2.3, I added changes to my configuration:

  server: {
    fsServe: {
      root: path.join(PROJECT_ROOT, '../../'),
    },
  }

and get the following error:

The request url "C:\Users\kozac\Dev\anime-library\node_modules\.vite\chunk-MH57LHOP.js.map" is outside of vite dev server root "C:/Users/kozac/Dev/anime-library"

It seems that the problem only applies to .map files. The rest of the files load as expected, and the application works despite the error:
зображення

Reproduction

Target Repo and branch: https://github.com/cawa-93/anime-library/tree/subtitles
Steps to reproduce:

  1. git clone git@github.com:cawa-93/anime-library.git
  2. git checkout subtitles
  3. npm ci
  4. npm run watch

System Info

Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:

 System:
    OS: Windows 10 10.0.19042
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
    Memory: 6.22 GB / 15.42 GB
  Binaries:
    Node: 14.16.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.10.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.423.0), Chromium (90.0.818.56)
    Internet Explorer: 11.0.19041.1
  npmPackages:
    @vitejs/plugin-vue: ^1.2.2 => 1.2.2
    vite: ^2.3.0 => 2.3.0

Used package manager: npm


Before submitting the issue, please make sure you do the following

  • 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.
  • Provide a description in this issue that describes the bug.
  • 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 https://github.com/vuejs/vue-next instead.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant