Bug: "Failed to construct 'URL': Invalid URL" in Vite3.0.0

See original GitHub issue

Describe the bug

Where the bug occurs: image

My “build.target” is “es2015”. In the production environment after executing “vite build”. After my test, Vite2.9.14 does not have this bug, The bug is on Vite3.0.0.

image image

Reproduction

no

System Info

Uncaught TypeError: Failed to construct 'URL': Invalid URL

Used Package Manager

npm

Logs

No response

Validations

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
caoxiemeihaocommented, Aug 5, 2022

@patak-dev Hey! 👋 I opened a new Issue #9543

1reaction
patak-devcommented, Jul 29, 2022

Thanks @caoxiemeihao. Please create a new issue with a reproduction linking to this one, or a PR like you suggest.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Failed to construct 'URL': Invalid URL
Iam trying to run the below code, but I am getting TypeError: Failed to construct 'URL': Invalid URL
Read more >
Changelog - Cypress Documentation
This change aligns with how the cy.visit() command generates urls with query ... The error "Invalid left-hand-side in assignment" will no longer be...
Read more >
Laravel Vite Issue - Laracasts
With "-- --host" i got a "address invalid" with a cryptical URL of "http://[..]:5173" and thats it. I wasnt aware i need to...
Read more >
vite.js:7 await import('source-map-support').then((r) => r ... - You.com
Describe the bug. Hello there,. using nodejs 12.22 and npm 7.5 on a Debian Bullseye arm64 machine to build an application with vite...
Read more >
TypeError: Failed to construct 'URL': Invalid URL - Treehouse
Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest...
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