可以使用Laravel/UI运行(NPM Run Dev)
我已经使用(Laravel/UI)软件包创建了Laravel应用程序,并且使用了Bootstrap UI,所有功能都很好,但是当我在(npm install)之后运行(npm run dev)时,它会像这样卡住: ps e:\ server \ htdocs \ me-online> NPM Run Dev
> @ dev E:\server\htdocs\me-online
> vite
Port 3000 is in use, trying another one...
vite v2.9.13 dev server running at:
> Local: http://localhost:3001/
> Network: use `--host` to expose
ready in 357ms.
Laravel v9.19.0
> APP_URL: http://localhost
我也尝试过:
PS E:\server\htdocs\me-online> npm run dev -host 3004
> @ dev E:\server\htdocs\me-online
> vite "3004"
Port 3000 is in use, trying another one...
vite v2.9.13 dev server running at:
> Local: http://localhost:3001/
> Network: use `--host` to expose
ready in 292ms.
(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling.
我已经在许多项目中没有任何问题完成了此操作吗?
I have created laravel application with the (laravel/Ui) package, and I have used bootstrap UI, everything working well, but when I rung (npm run dev) after (npm install), it is stuck like this:
PS E:\server\htdocs\me-online> npm run dev
> @ dev E:\server\htdocs\me-online
> vite
Port 3000 is in use, trying another one...
vite v2.9.13 dev server running at:
> Local: http://localhost:3001/
> Network: use `--host` to expose
ready in 357ms.
Laravel v9.19.0
> APP_URL: http://localhost
I tried this also:
PS E:\server\htdocs\me-online> npm run dev -host 3004
> @ dev E:\server\htdocs\me-online
> vite "3004"
Port 3000 is in use, trying another one...
vite v2.9.13 dev server running at:
> Local: http://localhost:3001/
> Network: use `--host` to expose
ready in 292ms.
(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling.
I have done this with many projects without any problem before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Laravel UI目前被Vite打破。 Laravel团队正在研究:
https://github.com/laravel.com/laravel/laravel/ui/ui/pull/pull/228/228
Laravel UI is currently broken with Vite. Laravel team is working on it:
https://github.com/laravel/ui/pull/228