Skip to content

Cryptic error during deployment despite no issue in dev - Uncaught ReferenceError: Cannot access '_EventEmitter' before initialization #499

@remiconnesson

Description

@remiconnesson

I get the error

23:20:39.927 Error: Failed to publish your Function. Got error: Uncaught ReferenceError: Cannot access '_EventEmitter' before initialization
  at chunks/nitro/nitro.mjs:1:43044

The projet is pretty basic and works in dev mode, the database is enabled if that can be an info

------------------------------
- Operating System: Linux
- Node Version:     v22.14.0
- Nuxt Version:     3.16.0
- CLI Version:      3.23.0
- Nitro Version:    2.11.6
- Package Manager:  pnpm@9.0.6
- Builder:          -
- User Config:      modules, uiPro, hub, css, devtools, ssr, future, compatibilityDate, runtimeConfig, eslint, mdc, sentry, sourcemap
- Runtime Modules:  @nuxt/ui-pro@3.0.0, @nuxt/eslint@1.1.0, @nuxtjs/mdc@0.13.5, @nuxthub/core@0.8.17, @nuxt/image@1.9.0,
 @sentry/nuxt/module@9.5.0, nuxt-typed-router@3.7.3, @pinia/nuxt@0.10.1
- Build Modules:    -
------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions