Skip to content

html.replace is not a function #33748

@jeannen

Description

@jeannen

Environment

  • Operating System: Darwin
  • Node Version: v23.7.0
  • Nuxt Version: 4.2.1
  • CLI Version: 3.30.0
  • Nitro Version: 2.12.7
  • Package Manager: npm@11.4.2
  • Builder: -
  • User Config: compatibilityDate, devtools, extends, modules, css, components, runtimeConfig, site, googleTracking, clarityTracking, ui, colorMode, imports, fonts, nitro, sitemap, routeRules, vite
  • Runtime Modules: @nuxt/eslint@1.9.0, @nuxt/ui@4.1.0, @nuxt/fonts@0.11.4, @nuxtjs/seo@3.2.2, @nuxt/image@1.11.0, @nuxt/content@3.7.1, @pinia/nuxt@0.11.2, nuxt-mongoose@1.0.6, @vue-email/nuxt@0.8.19
  • Build Modules: -

Reproduction

It's a private repo, I can give access tho

Describe the bug

Impossible to start Nuxt via npm run dev. The page shows for 1-2 sec then show the error screen:

Image

In the server console, I get this:

 ERROR  html.replace is not a function                                   10:31:56 AM

    at generateErrorOverlayHTML (.nuxt/dev/index.mjs:1961:26)
    at errorhandler (.nuxt/dev/index.mjs:2024:53)
    at async errorHandler (.nuxt/dev/index.mjs:2156:7)
    at async Server.toNodeHandle (/Users/jeannen/Dev/apps/Adkit/adkit-all/node_modules/h3/dist/index.mjs:2304:9)

Additional context

Seems to happen on 2 unrelated projects

Logs

ERROR  html.replace is not a function                                   10:31:56 AM

    at generateErrorOverlayHTML (.nuxt/dev/index.mjs:1961:26)
    at errorhandler (.nuxt/dev/index.mjs:2024:53)
    at async errorHandler (.nuxt/dev/index.mjs:2156:7)
    at async Server.toNodeHandle (/Users/jeannen/Dev/apps/Adkit/adkit-all/node_modules/h3/dist/index.mjs:2304:9)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions