PhpSpreadsheet \ Reader \ Exception 无法将 /root_dir/public/laravel-excel-fLRGTlw9uEE2XRz0k1fXdcg2wfs2RWy7.html 作为 DOM 文档加载

问题描述

我已经尝试了一切来解决这个问题,但没有任何效果。

php artisan cache:clear
php artisan view:clear
php artisan route:clear
php artisan config:clear

还更新了我的依赖项

composer dump-auto -a
composer update

但是这些都没有帮助我

请尽快回复。

解决方法

问题是有一个关闭锚标签,这造成了问题,因为在生成 Excel 时必须没有额外的东西或只缺少纯 HTML 表仅适用于 excel 文件生成

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...