Skip to content

Typescript: Development HMR option returns error in 3.8.0 #3600

@BenjaminOddou

Description

@BenjaminOddou

Hello,

since I updated to 3.8.0 I have an error in my nuxt.config.ts file :

Object literal may only specify known properties, and 'port' does not exist in type '{ enabled?: boolean | undefined; }'.ts(2353)
(property) port: number
export default defineNuxtConfig({
  content: {
    watch: {
      port: 3000,
      https: {
        key: './certs/localhost-key.pem',
        cert: './certs/localhost.pem',
      },
    },
  },

from node_modules/@nuxt/content/dist/module.d.mts I can see :

    /**
     * Development HMR
     * @default { enabled: true }
     */
    watch?: {
        enabled?: boolean;
    };
------------------------------
- Operating System: Linux
- Node Version:     v24.6.0
- Nuxt Version:     4.1.3
- CLI Version:      3.29.1
- Nitro Version:    2.12.6
- Package Manager:  [email protected]
- Builder:          -
- User Config:      compatibilityDate, site, modules, supabase, devtools, css, content, vite, icon, devServer, routeRules
- Runtime Modules:  @nuxt/[email protected], @nuxt/[email protected], @nuxt/[email protected], [email protected], @nuxtjs/[email protected], @pinia/[email protected], pinia-plugin-persistedstate/[email protected]
- Build Modules:    -
------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions