Skip to content

Commit af328fc

Browse files
authored
Merge pull request #27 from coolsam726/coolsam726-patch-1
Fix NPM issues experienced in step 11 of installation. CLOSES #25
2 parents a9267f1 + 1b12822 commit af328fc

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvid
6767
2. Install the necessary `npm` dev dependencies by running the following command:
6868
If you are using npm:
6969
```shell
70-
npm install --include=dev --legacy-peer-deps @headlessui/vue @inertiajs/inertia @inertiajs/inertia-vue3 @vitejs/plugin-vue pagetables popper.js @babel/plugin-syntax-dynamic-import dayjs dotenv numeral postcss postcss-import pusher-js laravel-echo laravel-vite sass sass-loader vite vue@^3.1 vue3-vt-notifications vue-flatpickr-component vue-numerals mitt savannabits/vue-select#v4.0.0-alpha.0
70+
npm install --include=dev --legacy-peer-deps @headlessui/vue @inertiajs/inertia @inertiajs/inertia-vue3 @vitejs/plugin-vue popper.js @babel/plugin-syntax-dynamic-import dayjs dotenv numeral postcss postcss-import pusher-js laravel-echo laravel-vite sass sass-loader vite vue@^3.1 vue3-vt-notifications vue-flatpickr-component vue-numerals mitt savannabits/vue-select#v4.0.0-alpha.0 dynamic-import-polyfill
7171
```
7272
Or if you are using yarn:
7373
```shell
74-
yarn add -D @headlessui/vue @vitejs/plugin-vue @inertiajs/inertia @inertiajs/inertia-vue3 pagetables popper.js @babel/plugin-syntax-dynamic-import dayjs dotenv numeral postcss postcss-import pusher-js laravel-echo laravel-vite sass sass-loader vite vue@^3.1 vue3-vt-notifications vue-flatpickr-component vue-numerals mitt savannabits/vue-select#v4.0.0-alpha.0
74+
yarn add -D @headlessui/vue @vitejs/plugin-vue @inertiajs/inertia @inertiajs/inertia-vue3 popper.js @babel/plugin-syntax-dynamic-import dayjs dotenv numeral postcss postcss-import pusher-js laravel-echo laravel-vite sass sass-loader vite vue@^3.1 vue3-vt-notifications vue-flatpickr-component vue-numerals mitt savannabits/vue-select#v4.0.0-alpha.0 dynamic-import-polyfill
7575
```
7676
Feel free to configure the color palette to your own preference, but for uniformity be sure to include `primary`,`secondary`, `success` and `danger` variants since they are used in the jig template.
7777

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import { defineConfig } from "laravel-vite";
22
import vue from "@vitejs/plugin-vue";
3-
import tailwind from "tailwindcss";
4-
export default defineConfig()
5-
.withPlugin(vue);
3+
export default defineConfig({
4+
server: {
5+
hmr: {
6+
host: 'localhost',
7+
protocol: 'ws'
8+
}
9+
}
10+
})
11+
.withPlugin(vue);

resources/js/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Just an empty file to replace app.js which is deprecated in v3

resources/scripts/main.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
*/
1111

1212
// Import modules...
13-
import * as JsBootstrap from "@/bootstrap.js"
14-
import 'vite/dynamic-import-polyfill';
13+
import 'dynamic-import-polyfill';
1514
import "~/css/app.css"
1615
import { createApp, h } from 'vue';
1716
import { createInertiaApp } from '@inertiajs/inertia-vue3';
@@ -25,6 +24,9 @@ import 'flatpickr/dist/flatpickr.css';
2524
import { emitter } from "@/JigComponents/eventHub.js";
2625
import { Link } from "@inertiajs/inertia-vue3"
2726

27+
const JsBootstrap = import("@/bootstrap");
28+
29+
2830
dayjs.extend(relativeTime);
2931
dayjs.extend(advancedFormat)
3032

0 commit comments

Comments
 (0)