"Error: getStaticPaths is required for dynamic SSG pages and is missing for 'xxx'"当我尝试在 NextJS 中创建我的页面时出现此错误。
我不想在构建时生成任何静态页面。那么为什么我需要创建一个'getStaticPaths'函数呢?
第一次对某些元素重新排序后使用https://www.npmjs.com/package/react-beautiful-dnd ,无法对先前移动的项目进行重新排序,并且控制台会打印
Unable to find draggable with id: XXX
Run Code Online (Sandbox Code Playgroud)
此外,当拖动另一个项目时,UI 会损坏并且控制台会打印:
Detected non-consecutive <Draggable /> indexes.(This can cause unexpected bugs) 0, [2], 3, 4, 5
Run Code Online (Sandbox Code Playgroud)