Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

ctx.route.includes is not a function when passing a function to generate.routes #19

Open
Zae opened this issue Dec 11, 2022 · 2 comments

Comments

@Zae
Copy link

Zae commented Dec 11, 2022

Hi,

I get this error when trying to pass a function to generate.routes, according to the nuxt docs this should be possible (like it was in nuxt 2), however when doing so, I get the following error.

 ERROR  ctx.route.includes is not a function                                                                                                                                                          
  at node_modules/@funken-studio/sitemap-nuxt-3/dist/module.mjs:418:2
  at node_modules/hookable/dist/index.mjs:39:82
  at async prerender (node_modules/nitropack/dist/shared/nitro.c8278d90.mjs:2961:7)
  at async node_modules/nuxt/dist/index.mjs:1675:7
  at async build (node_modules/nuxt/dist/index.mjs:2236:5)
  at async Object.invoke (node_modules/nuxi/dist/chunks/build.mjs:56:5)
  at async Object.invoke (node_modules/nuxi/dist/chunks/generate.mjs:32:5)
  at async _main (node_modules/nuxi/dist/cli.mjs:50:20)

Using:

@ErwinAI
Copy link

ErwinAI commented Dec 19, 2022

Also running into this problem

@Testottest
Copy link

Are there any solutions?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants