我为我的反应应用程序提供了一个api,它工作正常,但突然它停止了工作.在我的客户端(React app)package.json
"proxy": "http://localhost:7000"
Run Code Online (Sandbox Code Playgroud)
现在它告诉我这个错误消息:无法从localhost:3000代理请求/ api/users/signup到http:// localhost:7000.提前致谢.
我想测试我的组件,但是每个导出createFragmentContainer的组件都会向我显示这个问题:
console.error node_modules\react-native\Libraries\Core\ExceptionsManager.js:73
Warning: Failed context type: Invalid prop/context `relay` supplied to `Relay(Product)`, expected `undefined` to be an object with an `environment` and `variables`.
in Relay(Product)
console.error node_modules\react-native\Libraries\Core\ExceptionsManager.js:73
React caught an error thrown by Relay(Product). You should fix this error in your code. Consider adding an error boundary to your tree to customize error handling behavior.
TypeError: Cannot read property 'environment' of undefined
The error is located at:
in Relay(Product)
Run Code Online (Sandbox Code Playgroud)
那么jest支持片段容器还是问题在我的项目中?