所以我尝试使用此迁移指南迁移我的 SvelteKit 项目: https://github.com/sveltejs/kit/discussions/5774
我更新到 sveltekit 版本 1.0.0-next.405,我的应用程序工作正常。 然后我执行`
npx svelte-migrate routes
它执行得很好。我的项目中有新的文件夹结构。
我在代码库中搜索了 @migration 和“migration”,但没有找到其他包含待办事项的文件。
所以我正在尝试 npm install && npm run dev
并收到以下错误
404
Not found: /
Error: Not found: /
at resolve (file:///home/yannick/Downloads/test%20migration/.svelte-kit/runtime/server/index.js:3523:14)
at async Object.handle (//home/yannick/Downloads/test migration/src/hooks:8:19)
at async respond (file:///home/yannick/Downloads/test%20migration/.svelte-kit/runtime/server/index.js:3402:20)
at async file:///home/yannick/Downloads/test%20migration/node_modules/@sveltejs/kit/dist/vite.js:1539:22
我在迁移过程中错过了某个步骤吗?
转至错误中描述的所有文件夹,但找不到任何更多提示。
最佳答案
我认为这只是因为我在迁移后没有更新到.406
这里的评论描述了它是如何完成的 https://stackoverflow.com/a/73578603/12505487
关于migration - SvelteKit 迁移服务器后 Index.js 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73663693/