Php React Laravel:Can';I don’登录后,无法显示表单

Php React Laravel:Can';I don’登录后,无法显示表单,php,reactjs,laravel,Php,Reactjs,Laravel,我正在开发React Laravel酒店评论应用程序。我一直在关注这个教程(),以及它的githubrepo()。但是,一旦您登录,应该会显示审阅表单,但它从未显示。我认为有一个错误阻止了App.js的显示 这是我的网站,我使用postgres数据库和我的github repo在heroku上托管。我将编辑welcome.blade.php和其他页面的布局。但是,现在我需要在您登录后显示审阅表单 我检查并比较了教程中的每个文件和我的文件,没有发现任何区别,唯一的区别是我将“任务”重命名为“评论”

我正在开发React Laravel酒店评论应用程序。我一直在关注这个教程(),以及它的githubrepo()。但是,一旦您登录,应该会显示审阅表单,但它从未显示。我认为有一个错误阻止了
App.js
的显示

这是我的网站,我使用postgres数据库和我的github repo在heroku上托管。我将编辑
welcome.blade.php
和其他页面的布局。但是,现在我需要在您登录后显示审阅表单

我检查并比较了教程中的每个文件和我的文件,没有发现任何区别,唯一的区别是我将“任务”重命名为“评论”。有人能看看我的代码并帮助我吗

另外,当我登录时,我在console.log中发现了这个错误。我不明白这些错误在说什么

app.js:69008 Uncaught TypeError: Cannot read property 'bind' of undefined
    at new App (app.js:69008)
    at constructClassInstance (app.js:51435)
    at updateClassComponent (app.js:55644)
    at beginWork$1 (app.js:57417)
    at HTMLUnknownElement.callCallback (app.js:37567)
    at Object.invokeGuardedCallbackDev (app.js:37616)
    at invokeGuardedCallback (app.js:37671)
    at beginWork$$1 (app.js:63011)
    at performUnitOfWork (app.js:61926)
    at workLoopSync (app.js:61902)
App @ app.js:69008
constructClassInstance @ app.js:51435
updateClassComponent @ app.js:55644
beginWork$1 @ app.js:57417
callCallback @ app.js:37567
invokeGuardedCallbackDev @ app.js:37616
invokeGuardedCallback @ app.js:37671
beginWork$$1 @ app.js:63011
performUnitOfWork @ app.js:61926
workLoopSync @ app.js:61902
performSyncWorkOnRoot @ app.js:61501
scheduleUpdateOnFiber @ app.js:60929
updateContainer @ app.js:64334
(anonymous) @ app.js:64759
unbatchedUpdates @ app.js:61664
legacyRenderSubtreeIntoContainer @ app.js:64758
render @ app.js:64839
./resources/js/index.js @ app.js:69117
__webpack_require__ @ app.js:20
./resources/js/app.js @ app.js:68898
__webpack_require__ @ app.js:20
0 @ app.js:69140
__webpack_require__ @ app.js:20
(anonymous) @ app.js:84
(anonymous) @ app.js:87
app.js:59074 The above error occurred in the <App> component:
    in App

Consider adding an error boundary to your tree to customize error handling behavior.
logCapturedError @ app.js:59074
logError @ app.js:59111
update.callback @ app.js:60463
callCallback @ app.js:51060
commitUpdateEffects @ app.js:51098
commitUpdateQueue @ app.js:51088
commitLifeCycles @ app.js:59391
commitLayoutEffects @ app.js:62575
callCallback @ app.js:37567
invokeGuardedCallbackDev @ app.js:37616
invokeGuardedCallback @ app.js:37671
commitRootImpl @ app.js:62313
unstable_runWithPriority @ app.js:68564
runWithPriority$2 @ app.js:49380
commitRoot @ app.js:62153
finishSyncRender @ app.js:61560
performSyncWorkOnRoot @ app.js:61538
scheduleUpdateOnFiber @ app.js:60929
updateContainer @ app.js:64334
(anonymous) @ app.js:64759
unbatchedUpdates @ app.js:61664
legacyRenderSubtreeIntoContainer @ app.js:64758
render @ app.js:64839
./resources/js/index.js @ app.js:69117
__webpack_require__ @ app.js:20
./resources/js/app.js @ app.js:68898
__webpack_require__ @ app.js:20
0 @ app.js:69140
__webpack_require__ @ app.js:20
(anonymous) @ app.js:84
(anonymous) @ app.js:87
app.js:69008 Uncaught TypeError: Cannot read property 'bind' of undefined
    at new App (app.js:69008)
    at constructClassInstance (app.js:51435)
    at updateClassComponent (app.js:55644)
    at beginWork$1 (app.js:57417)
    at HTMLUnknownElement.callCallback (app.js:37567)
    at Object.invokeGuardedCallbackDev (app.js:37616)
    at invokeGuardedCallback (app.js:37671)
    at beginWork$$1 (app.js:63011)
    at performUnitOfWork (app.js:61926)
    at workLoopSync (app.js:61902)
app.js:69008未捕获类型错误:无法读取未定义的属性“bind”
在新的应用程序中(App.js:69008)
在constructClassInstance(app.js:51435)
在updateClassComponent(app.js:55644)
起薪1美元(app.js:57417)
在htmlunknowneelement.callCallback(app.js:37567)上
在Object.invokeGuardedCallbackDev(app.js:37616)
在invokeGuardedCallback(app.js:37671)
一开始工作$$1(app.js:63011)
执行工作时(app.js:61926)
在workLoopSync(app.js:61902)
App@App.js:69008
constructClassInstance@app.js:51435
updateClassComponent@app.js:55644
beginWork$1@app.js:57417
callCallback@app.js:37567
invokeGuardedCallbackDev@app.js:37616
invokeGuardedCallback@app.js:37671
beginWork$$1@app.js:63011
performUnitOfWork@app.js:61926
workLoopSync@app.js:61902
performsyncworkroot@app.js:61501
scheduleUpdateOnFiber@app.js:60929
updateContainer@app.js:64334
(匿名)@app.js:64759
unbatchedUpdates@app.js:61664
legacyRenderSubtreeIntoContainer@app.js:64758
render@app.js:64839
./resources/js/index.js@app.js:69117
__webpack_require__@app.js:20
./resources/js/app.js@app.js:68898
__webpack_require__@app.js:20
0@app.js:69140
__webpack_require__@app.js:20
(匿名)@app.js:84
(匿名)@app.js:87
app.js:59074组件中出现上述错误:
应用程序内
考虑将错误边界添加到树中以自定义错误处理行为。
logCapturedError@app.js:59074
logError@app.js:59111
update.callback@app.js:60463
callCallback@app.js:51060
commitUpdateEffects@app.js:51098
commitUpdateQueue@app.js:51088
commitLifeCycles@app.js:59391
commitLayoutEffects@app.js:62575
callCallback@app.js:37567
invokeGuardedCallbackDev@app.js:37616
invokeGuardedCallback@app.js:37671
commitrotimpl@app.js:62313
不稳定的运行优先级@app.js:68564
runWithPriority$2@app.js:49380
Commitrout@app.js:62153
finishSyncRender@app.js:61560
performSyncWorkOnRoot@app.js:61538
scheduleUpdateOnFiber@app.js:60929
updateContainer@app.js:64334
(匿名)@app.js:64759
unbatchedUpdates@app.js:61664
legacyRenderSubtreeIntoContainer@app.js:64758
render@app.js:64839
./resources/js/index.js@app.js:69117
__webpack_require__@app.js:20
./resources/js/app.js@app.js:68898
__webpack_require__@app.js:20
0@app.js:69140
__webpack_require__@app.js:20
(匿名)@app.js:84
(匿名)@app.js:87
app.js:69008未捕获类型错误:无法读取未定义的属性“bind”
在新的应用程序中(App.js:69008)
在constructClassInstance(app.js:51435)
在updateClassComponent(app.js:55644)
起薪1美元(app.js:57417)
在htmlunknowneelement.callCallback(app.js:37567)上
在Object.invokeGuardedCallbackDev(app.js:37616)
在invokeGuardedCallback(app.js:37671)
一开始工作$$1(app.js:63011)
执行工作时(app.js:61926)
在workLoopSync(app.js:61902)

我所能推断的是App.js中的绑定有问题,但我检查了绑定,看起来一切正常。。。。。但也许我找错地方了。

我的执行正常,你运行
npm run watch
?我在推到heroku后检查了网站(),表单在我登录后没有显示。好的,我运行了
npm run watch
,它确实在本地主机上显示了。我只是不明白为什么它不能在线工作……在部署和部署生成的文件(app.js和app.css)之前,您需要运行
npm run prod