title: NestJS + NuxtJS (in TypeScript)
body: <p>I am currently looking for someone who has already prepared a starter kit with NestJS (back side) &amp; NuxtJS (front side) with SSR (server side rendering), in TypeScript.</p>
  
  <p>I would like to learn these two techno but I have not found enough help to build a project from scratch with them.</p>
  
  <p>What interests me about Nuxt is this ease of creating pages, and for Nest, it’s pretty complete and easy to create APIs too.</p>
  
  <p>I found some repositories on Github for quite a bit of old stuff and package updates make everything jump.</p>
  
  <p>I created my proper project: <a href="https://github.com/pirmax/nuxt-and-nest" rel="nofollow noreferrer">https://github.com/pirmax/nuxt-and-nest</a>
  But, either the API routes run on <a href="https://localhost:3000/api" rel="nofollow noreferrer">https://localhost:3000/api</a>, or the Nuxt routes work if I remove the NuxtJS integration.</p>
  
  <pre><code>async function bootstrap() {
    const nuxt = await new Nuxt(config);
    config.dev = !(process.env.NODE_ENV === "production");
    if (config.dev) {
      await new Builder(nuxt).build();
    }
    const app = await NestFactory.create(AppModule);
    await app.setGlobalPrefix("api");
    await app.listen(3000, () =&gt; console.log("Application is listening on port 3000."));
    await app.use(nuxt.render);
  }
  
  bootstrap();
  </code></pre>
  
  <p>Now, I have this error:</p>
  
  <blockquote>
    <p>bundle export should be a function when using { runInNewContext: false
    }.</p>
  </blockquote>
  
  <p>And if refresh page:</p>
  
  <blockquote>
    <p>runner is not a function</p>
  </blockquote>