我的应用程序在本地环境中工作,但在Heroku上部署后,我收到以下错误
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'dataset')
这就是屏幕上显示的内容
当我打开站点时
我试过将script标记从app.blade.php移到 *@ inerity * 标记之后,并将defer添加到脚本中,但是这些方法都不起作用。
<body class="font-sans antialiased">
@inertia
<script src="{{ mix('js/app.js') }}" defer></script>
@env ('local')
<script src="http://localhost:8080/js/bundle.js" defer></script>
@endenv
</body>
我也试过跟随this article,但这也没有解决它。
我觉得我错过了什么,任何建议都将不胜感激!
1条答案
按热度按时间kognpnkq1#