[英]Laravel vue page is not loading and is pending in the network tab
I got question about Laravel and VueJS.我有关于 Laravel 和 VueJS 的问题。 I've built my Vue project with npm run watch
and I started my Laravel application with php artisan serve
to serve the app.我已经使用npm run watch
构建了我的 Vue 项目,并使用php artisan serve
启动了我的 Laravel 应用程序来为该应用程序提供服务。 When I went visit my website-page, the page would not load and is continuing in a infinite loop.当我去访问我的网站页面时,该页面不会加载并且继续无限循环。 In my.network tab, I see an API request has been sent to /js/landing.js
, but he seems to be pending for the whole time.在 my.network 选项卡中,我看到一个 API 请求已发送到/js/landing.js
,但他似乎一直处于待处理状态。
My application is at the moment running on WSL, but I do not know what problem caused this issue.我的应用程序目前正在 WSL 上运行,但我不知道是什么问题导致了这个问题。
I'm not sure but maybe if u re-install npm in VueJS?我不确定,但也许如果你在 VueJS 中重新安装 npm?
another idea maybe is clear the cahe in vue and laravel terminal and test again!另一个想法可能是清除 vue 和 laravel 终端中的缓存并再次测试!
php artisan cache:clear php artisan config:clear php 工匠缓存:清除 php 工匠配置:清除
and try to check the log file for laravel and vuejs并尝试检查 laravel 和 vuejs 的日志文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.