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

Sourcemap for "xxxx" points to missing source files #5562

Closed
7 tasks done
sanyuan0704 opened this issue Nov 5, 2021 · 1 comment
Closed
7 tasks done

Sourcemap for "xxxx" points to missing source files #5562

sanyuan0704 opened this issue Nov 5, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@sanyuan0704
Copy link
Contributor

sanyuan0704 commented Nov 5, 2021

Describe the bug

I found a weird problem that confused a lot when using react. When I started vite, the console reported a lot of warning logs like this.

  vite v2.6.13 dev server running at:

  > Local: http://localhost:3004/
  > Network: use `--host` to expose

  ready in 360ms.

Sourcemap for "/Users/sanyuan/code/draft/bundless-lab/vite-react/node_modules/.vite/react.js" points to missing source files
Sourcemap for "/Users/sanyuan/code/draft/bundless-lab/vite-react/node_modules/.vite/react_jsx-dev-runtime.js" points to missing source files
[BABEL] Note: The code generator has deoptimised the styling of /Users/sanyuan/code/draft/bundless-lab/vite-react/node_modules/.vite/react-dom.js?v=cf634466 as it exceeds the max of 500KB.
Sourcemap for "/Users/sanyuan/code/draft/bundless-lab/vite-react/node_modules/.vite/react-dom.js" points to missing source files

Reproduction

Create and start a React project with official scaffolding.

npm init vite@latest

System Info

System:
    OS: macOS 11.4
    CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
    Memory: 505.91 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 12.22.1 - /usr/local/opt/nvm/versions/node/v12.22.1/bin/node
    Yarn: 1.22.10 - /usr/local/opt/nvm/versions/node/v12.22.1/bin/yarn
    npm: 6.14.12 - /usr/local/opt/nvm/versions/node/v12.22.1/bin/npm
  Browsers:
    Chrome: 95.0.4638.69
    Safari: 14.1.1
  npmPackages:
    @vitejs/plugin-react: ^1.0.0 => 1.0.7 
    vite: ^2.6.4 => 2.6.13

Used Package Manager

yarn

Logs

No response

Validations

@Niputi
Copy link
Contributor

Niputi commented Nov 5, 2021

duplicate of #5438

@Niputi Niputi closed this as completed Nov 5, 2021
@Niputi Niputi added duplicate This issue or pull request already exists and removed pending triage labels Nov 5, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Nov 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants