Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit a9258f4

Browse files
authored
Update Readme
Added info on how to correctly import Vue in Laravel default scaffolded app.js
1 parent 8aec035 commit a9258f4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,15 @@ import 'livewire-vue'
2727
// Or.
2828
require('livewire-vue')
2929
```
30+
31+
### App.js
32+
Please make sure you load vue in a way required for this plugin to work as expected.
33+
```js
34+
import Vue from 'vue'
35+
import 'livewire-vue'
36+
37+
window.Vue = Vue //this is important! Do not use require('vue')
38+
39+
```
40+
41+

0 commit comments

Comments
 (0)