Bug: "Failed to construct 'URL': Invalid URL" in Vite3.0.0
See original GitHub issueDescribe the bug
Where the bug occurs:

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.

Reproduction
no
System Info
Uncaught TypeError: Failed to construct 'URL': Invalid URL
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- 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.
- 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 vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@patak-dev Hey! 👋 I opened a new Issue #9543
Thanks @caoxiemeihao. Please create a new issue with a reproduction linking to this one, or a PR like you suggest.