Skip to content

Build Fails Due to JavaScript Heap Out of Memory and Missing deploy-manifest.json in Amplify Deployment #16304

Open
@husamMousa

Description

@husamMousa

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

^8.26.0

Framework Version

@sentry/nuxt: 9.17.0 Nuxt: 3.16.2

Link to Sentry event

No response

Reproduction Example/SDK Setup

export default defineNuxtConfig({
  modules: ['@sentry/nuxt/module'],
  ssr: false,
  sourcemap: {client: 'hidden'}
  sentry: {
     sourceMapsUploadOptions: {
        authToken: "my-auth-token",
        org: "my-org",
        project: "my-project-name",
      }
  }
})

Steps to Reproduce

  • Push a commit that includes source map support using @sentry/nuxt on a branch connected to AWS Amplify.
  • Let Amplify auto-trigger its build pipeline.
  • The frontend build phase starts (e.g. pnpm build).
  • During nuxt build, the memory usage spikes and the process fails with a fatal JavaScript heap out of memory error.
  • Even though the build log shows "Build completed successfully", the deployment fails due to a missing deploy-manifest.json.

Expected Result

  • Nuxt build should complete without exceeding memory limits.
  • Source maps should be uploaded successfully.
  • deploy-manifest.json should be created in the expected output directory.
  • The deployment should succeed.

Actual Result

  • Nuxt build fails with:
    FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

  • Followed by:
    CustomerError: Failed to find the deploy-manifest.json file in the build output.

  • This only happens when sourcemaps.enable = true in the Sentry module config.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions