device
device copied to clipboard
Nuxt module for detecting device type.
This is a DX improvement when developing - we can avoid loading the entire barrel file at `#app` by using the new granular imports merged in https://github.com/nuxt/nuxt/pull/23951.
How to make a plugin to add custom flag in Nuxt 3 ? I tried this but not working ``` export default defineNuxtPlugin((nuxtApp) => { let webview = useCookie('webview') let...
I'm getting this error on nuxt 3.4.2 Any solution? ` caught SyntaxError: The requested module '/_nuxt/node_modules/.pnpm/@[email protected]/node_modules/@nuxtjs/device/dist/runtime/composables/useDevice.d.ts?v=2806ccb0' does not provide an export named 'default' `
It looks like the code only detects Cloudfront if the user-agent is `Amazon Cloudfront`. It should instead just detect the 2-3 device headers it uses and just use them if...
```typescript declare module '@nuxtjs/device/dist/runtime/types' { interface Device { isMyApp: boolean } } ```
Hi! On Nuxt 2, I install the package `npm install -D @nuxtjs/device` I added '@nuxtjs/device', on the buildModules array (nuxt.config.js) I just added this code to my page: ``` Desktop...
"@nuxtjs/device": "^3.1.0", "cross-env": "^7.0.3", "nuxt": "3.0.0", "unplugin-element-plus": "^0.4.1" when i using yarn add @nuxtjs/device , report errors: No "exports" main defined in /Users/pangyongsheng/Desktop/work/jiaoyanyun_home/node_modules/@nuxt/kit/package.json
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [eslint](https://eslint.org) ([source](https://togithub.com/eslint/eslint)) | [`7.32.0` -> `9.6.0`](https://renovatebot.com/diffs/npm/eslint/7.32.0/9.6.0) |...