简体   繁体   English

Nextjs 相同动态路径的不同 slug 名称

[英]Nextjs different slug names for the same dynamic path

This is my folder structure of my nextjs app and Iam getting this error: Failed to reload dynamic routes: Error: You cannot use different slug names for the same dynamic path ('_Id'.== 'id').这是我的 nextjs 应用程序的文件夹结构,我收到此错误: Failed to reload dynamic routes: Error: You cannot use different slug names for the same dynamic path ('_Id'.== 'id').

Can someone explain what I am doing wrong here?有人可以解释我在这里做错了什么吗?

文件夹结构

Okay so after wasting 1 hour, I killed the server and reran it.好的,在浪费了 1 小时后,我杀死了服务器并重新运行它。 All good now.现在一切都好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM