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
According to the documentation Custom 404 page we must create a file named 404.tsx inside src/routes folder. However, when we try to build the application pnpm build the process fails the following message:
[vite-plugin-qwik-city] Could not load /Users/keuller/workspace/personal/basic/@qwik-city-plan (imported by src/s_02wmimzeabk.js): More than one route has been found for pathname "/". Please narrow it down to only one of these:
- /Users/keuller/workspace/personal/basic/src/routes/400.tsx
- /Users/keuller/workspace/personal/basic/src/routes/index.tsx
error during build:
Error: Could not load /Users/keuller/workspace/personal/basic/@qwik-city-plan (imported by src/s_02wmimzeabk.js): More than one route has been found for pathname "/". Please narrow it down to only one of these:
- /Users/keuller/workspace/personal/basic/src/routes/400.tsx
- /Users/keuller/workspace/personal/basic/src/routes/index.tsx
Looks like the builder recognises 400.tsx file as a root file.
Reproduction
N/A
Steps to reproduce
Create a file named 400.tsx inside src/routes folder and try to run the application.
Which component is affected?
Qwik Runtime
Describe the bug
According to the documentation Custom 404 page we must create a file named
404.tsx
insidesrc/routes
folder. However, when we try to build the applicationpnpm build
the process fails the following message:Looks like the builder recognises
400.tsx
file as a root file.Reproduction
N/A
Steps to reproduce
Create a file named
400.tsx
insidesrc/routes
folder and try to run the application.System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: