Have the same issue as well. Just install 2.10.0 and the problem started acting. Node v10.15.3, and all projects with different nuxt version will have this error message.
no errors during compile
stop here
I encountered the same problem after updating nuxt to 2.10.0 on a project. Then afterGenerate / renderroute problem was triggered on each build in spa mode, and for ALL my local 's nuxtjs projects in spa mode...
I finally solved this by running a "npm clean cache --force" and npm install.
Looks like update to 2.10.0 did corrupt my npm cache.. Hope this helps
Try to delete lock file and node modules and reinstall. If the error still happens - please provide a reproduction repo with lock file where this error happens for you.
I already tried, but deleting lock file and node modules did not work for me, the solution was to use the "npm clean cache"
i suggest to use yarn, it has less of this kind of problems
i suggest to use yarn, it has less of this kind of problems
yes i confirm, i tried a fresh yarn install and added all my dependencies to test and everything was fine, that's how i found that my package and scripts was correct but, the npm cache was corrupted
I tried with yarn, same error!
ERROR /dashboard
TypeError: Cannot read property 'renderRoute' of undefined
at Generator.generateRoute (/frontend/node_modules/@nuxt/generator/dist/generator.js:222:42)
at Promise.all.routes.splice.map (/frontend/node_modules/@nuxt/generator/dist/generator.js:120:24)
@vinayakkulkarni please provide a full reproduction with lock files
@aldarund : #6519
Yes same with yarn, removed * nodes-modules and package-lock.json, did a clean yarn install, and when running yarn run build, I get exactly the same error.
Instead 'npm run build' use 'npm run generate' - for me works fine
run generate works but we still need to resolve the build issue.
related #6519
Tested with both yarn and npm (deleted node_modules and lock file) build doesn't work
@carlosesquivel-katoo if your issue different from https://github.com/nuxt/nuxt.js/issues/6519 please provide a full reproduction
It's probably the same issue as #6519 @aldarund
It's probably the same issue as #6519 @aldarund
It's the same, just emphasizing that using yarn or npm was the same. I'll wait for the fix to be deployed.
Thanks!!!
Duplicate of https://github.com/nuxt/nuxt.js/issues/6519
Most helpful comment
Tested with both yarn and npm (deleted node_modules and lock file) build doesn't work