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

vite can't run #19240

Closed
7 tasks done
yeo50 opened this issue Jan 20, 2025 · 3 comments
Closed
7 tasks done

vite can't run #19240

yeo50 opened this issue Jan 20, 2025 · 3 comments

Comments

@yeo50
Copy link

yeo50 commented Jan 20, 2025

Describe the bug

i am installing laravel breeze package . during installation this error happen "error when starting dev server:
TypeError: Invalid URL
at new URL (node:internal/url:775:36)
at getAdditionalAllowedHosts (file:///C:/Users/User/Desktop/Laravel/eloquent/node_modules/vite/dist/node/chunks/dep-BdTvomPN.js:37687:29)
at resolveConfig (file:///C:/Users/User/Desktop/Laravel/eloquent/node_modules/vite/dist/node/chunks/dep-BdTvomPN.js:53812:29)
at async _createServer (file:///C:/Users/User/Desktop/Laravel/eloquent/node_modules/vite/dist/node/chunks/dep-BdTvomPN.js:43695:18)
at async CAC. (file:///C:/Users/User/Desktop/Laravel/eloquent/node_modules/vite/dist/node/cli.js:746:20)" . and it also happen in when run npm run dev .

Reproduction

l

Steps to reproduce

npm run dev

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx
    Memory: 461.11 MB / 7.66 GB
  Binaries:
    Node: 20.11.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (129.0.2792.52)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    @vitejs/plugin-vue: ^5.0.0 => 5.2.1
    vite: ^6.0 => 6.0.9

Used Package Manager

npm

Logs

No response

Validations

@muhsenmaqsudi
Copy link

downgrade to 6.0.8 for now till the fix comes from vite team

@laserhybiz
Copy link

This was caused by #19235

@bastihilger
Copy link

Same here on new vanilla Laravel install. Downgrade to 6.0.8 helped.

@bluwy bluwy closed this as completed Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants