我在跟踪RedwoodJS教程-获取动态,请求localhost:8910/posts时出现了代理错误
api | API listening on http://localhost:8911/
api | GraphQL endpoint at /graphql
api | 11:14:25 Server listening at http://[::]:8911
web | <e> [webpack-dev-server] [HPM] Error occurred while proxying request localhost:8910/graphql to http://[::1]:8911/ [ENETUNREACH] (https://nodejs.org/api/errors.html#errors_common_system_errors)发布于 2022-06-08 14:57:17
确保您的节点和纱线版本与先决条件匹配;
node: ">=14.19 <=16.x"
yarn: ">=1.15"发布于 2022-06-23 20:56:22
您可以将RWJS_DEV_API_URL="http://localhost"添加到环境变量中;可以通过运行RWJS_DEV_API_URL=“http://localhost” yarn rw dev或将其作为新行添加到.env文件中。
https://stackoverflow.com/questions/71941663
复制相似问题