这似乎是一个问题,实际上连接到后端,在错误的消息是空白的:
Login.js:21 POST https://XXXX.herokuapp.com/users/login 400 (Bad Request)
onClick @ Login.js:21
De @ react-dom.production.min.js:54
Ue @ react-dom.production.min.js:54
(anonymous) @ react-dom.production.min.js:55
Dr @ react-dom.production.min.js:105
Or @ react-dom.production.min.js:106
(anonymous) @ react-dom.production.min.js:117
$l @ react-dom.production.min.js:273
Be @ react-dom.production.min.js:52
Hr @ react-dom.production.min.js:109
Qt @ react-dom.production.min.js:74
qt @ react-dom.production.min.js:73
Login.js:34 {message: {…}}
Login.js:43 Request Failed TypeError: Cannot read properties of undefined (reading 'customerAccessToken')
at Login.js:36:42
非常感谢任何人的帮助!
谢谢你-你让我意识到我没有值在我的。env文件作为值在配置变量在heroku -这修复了它!