You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in Chrome dev console, run $nuxt.$router.options.routes
Go to /Locale and get 404 instead of component
Describe the bug
Current: The page doesn't load (404 not found). The new "/Locale" route was added from a module using extendPage. Looking at the route object clearly shows that the route doesn't have a component attached
Environment
Darwin
v18.18.2
2.17.3
3.10.0
2.8.1
yarn@1.22.19
webpack
bridge
,modules
,serverHandlers
,devServerHandlers
,devServer
,typescript
,nitro
,buildModules
@/modules/addLocale.ts
()
,@nuxt/bridge@3.0.1-28459804.a0dceb3
Reproduction
Stackblitz: https://stackblitz.com/edit/github-nafqpn?file=modules%2FaddLocale.ts
Repo: https://github.com/yanniznik/nuxt-bridge-extendPages
modules
yarn dev
$nuxt.$router.options.routes
/Locale
and get 404 instead of componentDescribe the bug
Current: The page doesn't load (404 not found). The new "/Locale" route was added from a module using
extendPage
. Looking at the route object clearly shows that the route doesn't have acomponent
attachedExpected: the
component
is attached to the route so that it can be loaded normallyAdditional context
The exact same setu in Nuxt3 works.
/Locale
is apccessibleExample stablitz with Nuxt3, same setup: https://stackblitz.com/github/nuxt/examples/tree/main/examples/advanced/module-extend-pages?embed=1&file=pages/index.vue&theme=dark
Logs
No response
The text was updated successfully, but these errors were encountered: