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

The update to Version 6 appears to break new Laravel installs. #312

Closed
garyross opened this issue Dec 3, 2024 · 1 comment · Fixed by #313
Closed

The update to Version 6 appears to break new Laravel installs. #312

garyross opened this issue Dec 3, 2024 · 1 comment · Fixed by #313

Comments

@garyross
Copy link

garyross commented Dec 3, 2024

Vite Plugin Version

1.1

Laravel Version

11 via laravel new

Node Version

18.18.2

NPM Version

10.4

Operating System

macOS

OS Version

15.1.1

Web browser and version

Version 133.0.6863.1 (Official Build) canary-dcheck (arm64)

Running in Sail?

No

Description

This happens during install:

  INFO  No publishable resources for tag [laravel-assets].  

No security vulnerability advisories found.

   INFO  Published API routes file.  

   INFO  API scaffolding installed. Please add the [Laravel\Sanctum\HasApiTokens] trait to your User model.  


   INFO  Middleware [app/Http/Middleware/HandleInertiaRequests.php] created successfully.  

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: vite@5.4.11
npm ERR! node_modules/vite
npm ERR!   dev vite@"^5.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^6.0.0" from laravel-vite-plugin@1.1.0
npm ERR! node_modules/laravel-vite-plugin
npm ERR!   dev laravel-vite-plugin@"^1.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /Users/gary/.npm/_logs/2024-12-03T05_32_36_453Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/gary/.npm/_logs/2024-12-03T05_32_36_453Z-debug-0.log

### Steps To Reproduce


composer global update
laravel new app_name

(Choose Jetstream + Inertia)
@garyross
Copy link
Author

garyross commented Dec 3, 2024

I'm guessing the laravel new has not been synced, and looking at the latest Laravel package.json, the quick fix is in your package.json devDependencies to match. i.e.

"devDependencies": {
"laravel-vite-plugin": "^1.1",
"vite": "^6.0"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant