Skip to content

Commit 12f9837

Browse files
committed
fix: align Inertia.js version requirements between npm and composer
- Update inertiajs/inertia-laravel from ^1.0 to ^2.0 to match npm package version - Fix version mismatch between frontend and backend Inertia dependencies
1 parent 3d37555 commit 12f9837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/InstallsInertiaStacks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ trait InstallsInertiaStacks
1818
protected function installInertiaSvelteStack()
1919
{
2020
// Install Inertia...
21-
if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^1.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) {
21+
if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^2.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) {
2222
return 1;
2323
}
2424

@@ -66,7 +66,7 @@ protected function installInertiaSvelteStack()
6666
] + $packages;
6767
});
6868

69-
69+
7070
$this->updateNodeScripts(function ($scripts) {
7171
return $scripts + [
7272
'check' => 'svelte-check --tsconfig ./tsconfig.json',

0 commit comments

Comments
 (0)