Nuxt integration routes
See original GitHub issueI’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:
- Created 6 years ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@marcinstasiak here’s my setup https://github.com/chanlito/nuxt-ts-starter/blob/master/server/main.ts
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.