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

loadAndTransform throws error when plugin tries to resolve ID to external URL #11633

Closed
7 tasks done
sagargurtu opened this issue Jan 8, 2023 · 0 comments · Fixed by #11731
Closed
7 tasks done

loadAndTransform throws error when plugin tries to resolve ID to external URL #11633

sagargurtu opened this issue Jan 8, 2023 · 0 comments · Fixed by #11731
Labels
p3-minor-bug An edge case that only affects very specific usage (priority) regression The issue only appears after a new release

Comments

@sagargurtu
Copy link
Contributor

Describe the bug

When a plugin tries to resolve an ID to an external URL, following error is thrown on the terminal:

Failed to load url https://esm.sh/stable/react@18.2.0/es2022/react.js (resolved id: https://esm.sh/stable/react@18.2.0/es2022/react.js). Does the file exist? (x2)

Related pull request: #10880

Reproduction

https://stackblitz.com/edit/vitejs-vite-sjrjug

Steps to reproduce

Run npm install followed by npm run dev

System Info

System:
  OS: Linux 5.0 undefined
  CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Memory: 0 Bytes / 0 Bytes
  Shell: 1.0 - /bin/jsh
Binaries:
  Node: 16.14.2 - /usr/local/bin/node
  Yarn: 1.22.19 - /usr/local/bin/yarn
  npm: 7.17.0 - /usr/local/bin/npm
npmPackages:
  @vitejs/plugin-react: ^2.1.0 => 2.1.0 
  vite: ^4.0.0 => 4.0.4

Used Package Manager

npm

Logs

No response

Validations

@sapphi-red sapphi-red added p3-minor-bug An edge case that only affects very specific usage (priority) regression The issue only appears after a new release and removed pending triage labels Jan 8, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p3-minor-bug An edge case that only affects very specific usage (priority) regression The issue only appears after a new release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants