找不到webpack encore开发服务器/

您好
我试图通过输入"MIC_CONFIG": { "rate": 8000,"channels": 1,"debug": true,"exitOnSilence": 6 } 来使用webpack encore运行开发服务器 检查localhost:9000使我npm run dev-server并给出该日志

Cannot GET /


知道我已经更改了package.json

 「wds」: Project is running at http://localhost:9000/ 
 「wds」: webpack output is served from http://localhost:9000/build/
 「wds」: Content not from webpack is served from D:\xampp\htdocs\api-platform\public
 「wds」: 404s will fallback to /index.html 

,并查看doc https://symfony.com/doc/current/frontend/encore/dev-server.html

"scripts": {
"dev-server": "encore dev-server --port 9000 --disable-host-check","dev": "encore dev","watch": "encore dev --watch","build": "encore production --progress"
},

控制器

Project structure
api-platform/node_modules
api-platform/public/build/entrypoints.json
api-platform/public/build/manifest.json
api-platform/package.json
api-platform/webpack.config.json
yufen0312 回答:找不到webpack encore开发服务器/

最后通过订阅几个步骤来解决这个问题。

  1. 转到awk并添加端口,禁用主机检查到您的开发服务器:
      

    “开发服务器”:“再加开发服务器--port 9000-禁用主机检查”,

  2. 转到应用程序的主机(而不是dev-server的主机),并确保apache和dev-server之间没有相同的端口。
    干杯!
本文链接:https://www.f2er.com/2873684.html

大家都在问