gpt4 book ai didi

reactjs - 使用 feathers express 时,出现页面未找到错误 #2355

转载 作者:行者123 更新时间:2023-12-04 15:54:17 25 4
gpt4 key购买 nike

我在后端和前端都集成了 feathers js,当我尝试此实现时出现页面未找到错误。我将不胜感激你的帮助。感谢您的出色工作!

代码 https://github.com/react-boilerplate/react-boilerplate/issues/2355

最佳答案

这是同样的问题discussed in this FAQ .

Just like in Express itself, the order of middleware matters. If you registered a custom middleware outside of the generator, you have to make sure that it runs before the notFound() error midlleware.

这意味着

app.use(express.notFound());

总是必须是最后一个 app.use 调用。

关于reactjs - 使用 feathers express 时,出现页面未找到错误 #2355,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52569976/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com