Skip to content

Commit 1b0c9ee

Browse files
authored
fix: update inertia packages (#1247)
1 parent 4927dd3 commit 1b0c9ee

6 files changed

Lines changed: 77 additions & 56 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"embed/embed": "^4.4",
2020
"guzzlehttp/guzzle": "^7.9",
2121
"hafael/azure-mailer-driver": "^7.2.0",
22-
"inertiajs/inertia-laravel": "^3.1",
22+
"inertiajs/inertia-laravel": "^3.0",
2323
"intervention/image-laravel": "^1.5",
2424
"kalnoy/nestedset": "^6.0",
2525
"laravel/framework": "^12.53",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 68 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"@alpinejs/persist": "^3.15.12",
1414
"@ckpack/vue-color": "^1.5.0",
1515
"@headlessui/vue": "^1.7.23",
16-
"@inertiajs/vue3": "^2.1.3",
16+
"@inertiajs/vite": "^3.4.0",
17+
"@inertiajs/vue3": "^3.4.0",
1718
"@tailwindcss/aspect-ratio": "^0.4.2",
1819
"@tailwindcss/forms": "^0.5.10",
1920
"@tailwindcss/typography": "^0.5.16",

resources/views/admin.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</head>
1414

1515
<body class="min-h-screen antialiased bg-gray-100">
16-
@inertia
16+
<x-inertia::app />
1717
</body>
1818

1919
</html>

vite.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { defineConfig, loadEnv } from 'vite';
22
import laravel from 'laravel-vite-plugin';
3+
import inertia from '@inertiajs/vite';
34
import vue from '@vitejs/plugin-vue';
45
import manifestSRI from 'vite-plugin-manifest-sri';
56
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons';
6-
import path from 'path';
7+
import path from 'node:path';
78

89
export default defineConfig(({ mode }) => {
910
const env = loadEnv(mode, import.meta.dirname);
@@ -20,6 +21,7 @@ export default defineConfig(({ mode }) => {
2021
'resources/js/public.js',
2122
],
2223
}),
24+
inertia(),
2325
manifestSRI(),
2426
vue({
2527
template: {
@@ -43,6 +45,6 @@ export default defineConfig(({ mode }) => {
4345
'~': '/resources',
4446
'%': '/lang',
4547
},
46-
}
48+
},
4749
};
4850
});

0 commit comments

Comments
 (0)