nuxt: nuxt build error

Nuxt 2.10.0 error build project

 ERROR   /en/                                                                                                              18:19:39

TypeError: Cannot read property 'renderRoute' of undefined
    at Generator.generateRoute (/home/exchanger/exchanger-admin-web/node_modules/@nuxt/generator/dist/generator.js:222:42)
    at /home/exchanger/exchanger-admin-web/node_modules/@nuxt/generator/dist/generator.js:120:24
    at async Promise.all (index 140)
    at async Generator.generateRoutes (/home/exchanger/exchanger-admin-web/node_modules/@nuxt/generator/dist/generator.js:115:7)
    at async Generator.generate (/home/exchanger/exchanger-admin-web/node_modules/@nuxt/generator/dist/generator.js:48:20)
    at async Object.run (/home/exchanger/exchanger-admin-web/node_modules/@nuxt/cli/dist/cli-build.js:101:5)
    at async NuxtCommand.run (/home/exchanger/exchanger-admin-web/node_modules/@nuxt/cli/dist/cli-command.js:2575:7)


 FATAL  Cannot read property 'renderRoute' of undefined                                                                    18:19:39

  at Generator.afterGenerate (node_modules/@nuxt/generator/dist/generator.js:168:43)
  at async Generator.generate (node_modules/@nuxt/generator/dist/generator.js:50:5)
  at async Object.run (node_modules/@nuxt/cli/dist/cli-build.js:101:5)
  at async NuxtCommand.run (node_modules/@nuxt/cli/dist/cli-command.js:2575:7)


   ╭────────────────────────────────────────────────────────────────╮
   │                                                                │
   │   ✖ Nuxt Fatal Error                                           │
   │                                                                │
   │   TypeError: Cannot read property 'renderRoute' of undefined   │


<div align="right">This question is available on Nuxt community (#c9852)</div>

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 13
  • Comments: 15

Most upvoted comments

I have the same error for each route of my app: Cannot read property 'renderRoute' of undefined when I run nuxt-ts build