nuxt-modules / device

Nuxt module for detecting device type.
MIT License
886 stars 49 forks source link

Name `$device` not found #171

Closed lxccc812 closed 2 months ago

lxccc812 commented 8 months ago

How to use $device in nuxt

__VLS_ctx.$device" is of type "Unknown

image

docs

nuxt 3.7.4 @nuxtjs/device 3.1.0 chrome 118.0.5993.89

nuxt.config.ts

{
    modules: ['@nuxtjs/device'],
    device: {
        refreshOnResize: true
    }
}
thomasjonas commented 8 months ago

Same problem here! This is issue is a duplicate of #138

lxccc812 commented 8 months ago

When to resolve changes or documentationšŸ¤”

samasarin commented 6 months ago

Same

DamianGlowala commented 2 months ago

Let's track in https://github.com/nuxt-modules/device/issues/136.