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 integration routes

See original GitHub issue

I’m submitting a…


[x] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request

Current behavior

After upgrade from 4.1.0 to 4.5.9 NUXT integration stop working. Depending on the order of nuxt render and nest listen work only routes from NUXT or Nest.

Only Nest routes work:

async function bootstrap() {
    const nuxt = await new Nuxt(config);

    config.dev = !(process.env.NODE_ENV === 'production');
    if (config.dev) {
        new Builder(nuxt).build()
    }

    const app = await NestFactory.create(ApplicationModule);
    await app.listen(8000);
    
    app.use(nuxt.render);
}
bootstrap();

Only NUXT routes work:

async function bootstrap() {
    const nuxt = await new Nuxt(config);

    config.dev = !(process.env.NODE_ENV === 'production');
    if (config.dev) {
        new Builder(nuxt).build()
    }

    const app = await NestFactory.create(ApplicationModule);

    app.use(nuxt.render);

    await app.listen(8000);
    
}
bootstrap();

Expected behavior

Both routes working.

Minimal reproduction of the problem with instructions

Upgrade from:

"dependencies": {
    "@nestjs/common": "4.1.0",
    "@nestjs/core": "4.1.0",
    "nuxt": "^1.0.0-rc11"
}

to:

  "dependencies": {
    "@nestjs/common": "4.5.9",
    "@nestjs/core": "4.5.10",
    "nuxt": "^1.3.0"
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

0reactions
lock[bot]commented, Sep 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Routing - Nuxt
Nuxt automatically generates the vue-router configuration for you, based on your provided Vue files inside the pages directory. That means you never have...
Read more >
Define Routes with Nuxt - Documentation - Prismic
Nuxt routes are defined using file and directory names in the pages directory, as we'll explore on this page. For example, the file ......
Read more >
How to generate routes for Nuxt.js using Storyblok
Nuxt.js allows you to export your application as a static generated website. To do so it will need to know every route available....
Read more >
Nuxt.js cheat sheet - Christopher Kade
In the /pages folder, create a file, its name will be the name of the route. So for example: 1// /pages/about.vue 2 3 ......
Read more >
Nuxt.js Routing (part 1) - YouTube
We go over the basics of nuxt routing. Found a nuxt bug as well :) Link to the bug - https://github.com/ nuxt /...
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