Cannot find any path matching /__nuxt_error
sawa-ko opened this issue · comments
Sawako commented
Environment
Nuxt project info: 11:12:21 PM
- Operating System: Linux
- Node Version: v20.8.1
- Nuxt Version: 3.7.4
- CLI Version: 3.9.1
- Nitro Version: 2.7.2
- Package Manager: pnpm@8.9.2
- Builder: -
- User Config: modules, authJs, nitro, devtools, experimental, runtimeConfig
- Runtime Modules: @hebilicious/authjs-nuxt@0.3.5
- Build Modules: -
Reproduction
https://github.com/sawa-ko/authjs-nuxt-examples
Describe the bug
When you configure the options as follows:
{
authJs: {
authenticatedRedirectTo: '/dashboard',
baseUrl: process.env.NUXT_APP_BASE_URL,
guestRedirectTo: '/login',
verifyClientOnEveryRequest: true,
}
}
You get the following error when you try to visit to the application:
{
"url": "/__nuxt_error?url=/&statusCode=404&statusMessage=Cannot+find+any+path+matching+/.&message=Cannot+find+any+path+matching+/.&stack",
"statusCode": 404,
"statusMessage": "Cannot find any path matching /__nuxt_error?url=/&statusCode=404&statusMessage=Cannot+find+any+path+matching+/.&message=Cannot+find+any+path+matching+/.&stack.",
"message": "Cannot find any path matching /__nuxt_error?url=/&statusCode=404&statusMessage=Cannot+find+any+path+matching+/.&message=Cannot+find+any+path+matching+/.&stack.",
"stack": ""
}
Additional context
No response
Logs
No response