-
-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
I've followed the installation instructions and when Vue.use(head) is run it errors out with:
Uncaught TypeError: Cannot set properties of undefined (setting '$head')
this happens in node_modules/@vueuse/head/dist/index.mjs on line 493, which is:
app.config.globalProperties.$head = head;
So here: https://github.com/vueuse/head/blob/main/src/index.ts#L159
I'm running Vue 2.7.13 and webpack 3.12.0 (can't currently update beyond webpack 3 due to other dependencies).
Full trace
index.mjs?f615:493 Uncaught TypeError: Cannot set properties of undefined (setting '$head')
at Object.install (index.mjs?f615:493:1)
at Vue.use (vue.common.dev.js?e87b:5670:1)
at eval (main.js?3479:45:1)
at Object.<anonymous> (app.js:4107:1)
at __webpack_require__ (app.js:708:30)
at fn (app.js:113:20)
at Object.<anonymous> (app.js:4014:18)
at __webpack_require__ (app.js:708:30)
at app.js:806:39
at app.js:809:10
install @ index.mjs?f615:493
Vue.use @ vue.common.dev.js?e87b:5670
eval @ main.js?3479:45
(anonymous) @ app.js:4107
__webpack_require__ @ app.js:708
fn @ app.js:113
(anonymous) @ app.js:4014
__webpack_require__ @ app.js:708
(anonymous) @ app.js:806
(anonymous) @ app.js:809
vetruvet
Metadata
Metadata
Assignees
Labels
No labels