Next.js Discord

Discord Forum

Intercepting Route is not working , what is the error i can't understand

Unanswered
Dutch Smoushond posted this in #help-forum
Open in Discord
Dutch SmoushondOP
Here is my project structure
i want when i go from service/sid to /about the intercepted about should be visible but it is not happening

2 Replies

Dutch SmoushondOP
i got stuck here , someone please help
Dutch SmoushondOP
✓ Compiled /[service]/[sid] in 1844ms (522 modules)
GET /adya/123 200 in 4152ms
TypeError: Expected "1" to be a string
at D:\next-ui\node_modules\next\dist\compiled\path-to-regexp\index.js:237:19
at prepareDestination (D:\next-ui\node_modules\next\dist\shared\lib\router\utils\prepare-destination.js:209:18)
at handleRoute (D:\next-ui\node_modules\next\dist\server\lib\router-utils\resolve-routes.js:487:94)
at resolveRoutes (D:\next-ui\node_modules\next\dist\server\lib\router-utils\resolve-routes.js:525:34)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async handleRequest (D:\next-ui\node_modules\next\dist\server\lib\router-server.js:211:96)
at async requestHandlerImpl (D:\next-ui\node_modules\next\dist\server\lib\router-server.js:377:13)
at async Server.requestListener (D:\next-ui\node_modules\next\dist\server\lib\start-server.js:141:13)
○ Compiling /_error ...
✓ Compiled /_error in 1956ms (745 modules)
○ Compiling /about ...



this error i am getting