nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.93k stars 161 forks source link

DevTool: Payload, generate schema button missing #753

Open wesley974 opened 16 hours ago

wesley974 commented 16 hours ago

Environment

Environment:

- Operating System: Windows_NT
- Node Version:     v20.15.1
- Nuxt Version:     3.14.159
- CLI Version:      3.15.0
- Nitro Version:    2.10.4
- Package Manager:  npm@10.8.2
- Builder:          -
- User Config:      default
- Runtime Modules:  @nuxt/ui@2.19.2, @nuxtjs/google-fonts@3.2.0, @nuxt/image@1.8.1
- Build Modules:    -

Reproduction

Hi,

I use Nuxt 3.14.159. When I try to use the devtool, the button to generate schema is missing in the Payload part.

Below the nuxt.config.ts:

export default defineNuxtConfig({
  compatibilityDate: '2024-04-03',
  future: {
    compatibilityVersion: 4,
  },
  devtools: { enabled: true },
  image: {
    domains: ["https://cdn.dummyjson.com"]
  },
  modules: [
    '@nuxt/ui',
    '@nuxtjs/google-fonts',
    '@nuxt/image'
  ],
  googleFonts: {
    families: {
      Montserrat: true,
    },
  }
})

The package.json:

{
  "name": "nuxt-app",
  "private": true,
  "type": "module",
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "dependencies": {
    "@nuxt/image": "^1.8.1",
    "@nuxt/ui": "^2.19.2",
    "@nuxtjs/google-fonts": "^3.2.0",
    "nuxt": "^3.14.159",
    "vue": "latest",
    "vue-router": "latest"
  }
}

See the screenshot:

Image

Any idea?

Thank you very much for your help!

Describe the bug

Hi,

I use Nuxt 3.14.159. When I try to use the devtool, the button to generate schema is missing in the Payload part.

Below the nuxt.config.ts:

export default defineNuxtConfig({
  compatibilityDate: '2024-04-03',
  future: {
    compatibilityVersion: 4,
  },
  devtools: { enabled: true },
  image: {
    domains: ["https://cdn.dummyjson.com"]
  },
  modules: [
    '@nuxt/ui',
    '@nuxtjs/google-fonts',
    '@nuxt/image'
  ],
  googleFonts: {
    families: {
      Montserrat: true,
    },
  }
})

The package.json:

{
  "name": "nuxt-app",
  "private": true,
  "type": "module",
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "dependencies": {
    "@nuxt/image": "^1.8.1",
    "@nuxt/ui": "^2.19.2",
    "@nuxtjs/google-fonts": "^3.2.0",
    "nuxt": "^3.14.159",
    "vue": "latest",
    "vue-router": "latest"
  }
}

See the screenshot:

Image

Any idea?

Thank you very much for your help!

Additional context

No response

Logs

arashsheyda commented 16 hours ago

so we are using quicktype for generating types, and it has some problem of bundling (it's in CJS), we removed this temporary

github-actions[bot] commented 16 hours ago

Stackblitz link for the reproduction: Stackblitz