question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'nuxt generate' finished but did not exit after 5s

See original GitHub issue

Version

@nuxtjs/sentry: 5.1.3 nuxt: 2.15.7

Sentry configuration

  sentry: {
    dsn: '<dsn here>',
    lazy: true,
    disabled: !!process.env.ENV === 'dev',
    publishRelease: true,
    tracing: {
      tracesSampleRate: 0.05
    },
    config: {
      environment: process.env.ENV,
      release: `app-ui@${pkg.default.version}`,
      dsn: '<dsn here>',
      disabled: !!process.env.ENV === 'dev'
    }
  }

Steps to reproduce

It’s happening for me on fresh installs with create-nuxt-app, existing projects etc with target: 'static' set and running yarn generate command. This is only happening with this module installed and different Sentry configurations don’t seem to make a difference.

Here are my dependencies on the fresh install:

  "dependencies": {
    "@nuxt/content": "^1.14.0",
    "@nuxtjs/axios": "^5.13.6",
    "@nuxtjs/pwa": "^3.3.5",
    "@nuxtjs/sentry": "^5.1.3",
    "core-js": "^3.15.1",
    "nuxt": "^2.15.7"
  },
  "devDependencies": {
    "@babel/eslint-parser": "^7.14.7",
    "@nuxt/types": "^2.15.7",
    "@nuxt/typescript-build": "^2.1.0",
    "@nuxtjs/eslint-config-typescript": "^6.0.1",
    "@nuxtjs/eslint-module": "^3.0.2",
    "@nuxtjs/tailwindcss": "^4.2.0",
    "@vue/test-utils": "^1.2.1",
    "babel-core": "7.0.0-bridge.0",
    "babel-jest": "^27.0.5",
    "eslint": "^7.29.0",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-nuxt": "^2.0.0",
    "eslint-plugin-vue": "^7.12.1",
    "jest": "^27.0.5",
    "postcss": "^8.3.5",
    "prettier": "^2.3.2",
    "ts-jest": "^27.0.3",
    "vue-jest": "^3.0.4"
  }

What is Expected?

Not to receive the warning, which will be fatal in Nuxt 3.

What is actually happening?

The project builds currently with a warning but will be fatal in Nuxt 3 which is due for release in 12 days.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rchlcommented, May 19, 2022

If you are sure that this module is the culprit then I can have a look if you provide a reproduction

1reaction
rchlcommented, Oct 1, 2021

I’ve mentioned tracing because that’s what reproduced for me but the fix is generic enough that it should cover all cases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do i fix Nuxt Warning 'nuxt build finished but did not exit ...
The command 'nuxt build' finished but did not exit after 5s │ │ │ │ This is most likely not caused by a...
Read more >
Nuxt "generate" routes by Firebase data: "Is finished but did ...
Nuxt "generate" routes by Firebase data: "Is finished but did not exit after 5s..." · I should probably using the Firebase REST API...
Read more >
Nuxt Generate 遇到一个问题 - icebreaker
The command 'nuxt generate' finished but did not exit after 5s. This is most likely not caused by a bug in Nuxt.js. Make...
Read more >
Nuxt Lifecycle
The goal of this chapter is to give you a high-level overview of the different parts of the framework, their order of execution...
Read more >
Nuxt JS Static Sites all failing to build on npm run generate
Hello, All of my Nuxt JS sites are failing to build recently. ... 1:00:37 PM: Finished restoring cached build plugins
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found