Vueuse Head Breaks with Viewport

Published: Aug 27 ยท 1 min read

๐Ÿ˜€
๐Ÿ˜€๐Ÿš€๐Ÿคฃ๐Ÿ‘๐Ÿฅณโ™ฅ๏ธ๐Ÿ‘€๐Ÿ‘Ž

Strange behavior on Strange behavior on @vueuse/head with with viewport: :

ts
import { useHead } from '@vueuse/head'
useHead({
title: 'Nick Graffis',
meta: [
{ name: 'title', content: 'Nick Graffis' },
{ name: 'description', content: 'Nick Graffis\'s Personal Website' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' },
],
})

Gives the following error: Gives the following error:

bash
ReferenceError: Node is not defined
at /Users/nickgraffis/Sites/newish-space/node_modules/@vueuse/head/dist/index.js:202:55
ts
import { useHead } from '@vueuse/head'
useHead({
title: 'Nick Graffis',
meta: [
{ name: 'title', content: 'Nick Graffis' },
{ name: 'description', content: 'Nick Graffis\'s Personal Website' },
],
})

Works fine Works fine ๐Ÿคท๐Ÿคท. .