我想运行另一个开发人员的代码。前端使用nuxt.js,后端使用laravel和lumen。到目前为止,后端运行没有任何问题。除了这个问题最初是来自后端。
我已经成功部署了Web前端,当我想登录时发现了一个问题。
OPEN http://localhost:3000
nuxt:render Rendering url / +0ms
nuxt:render Data fetching /: 4ms +0ms
{ Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (_http_outgoing.js:471:11)
at Renderer.nuxtMiddleware (E:\DAS\Arknet\Dev-Code\frontend\node_modules\nuxt\lib\core\middleware\nuxt.js:37:11)
at process._tickCallback (internal/process/next_tick.js:68:7) statusCode: 500, name: 'Error [ERR_HTTP_HEADERS_SENT]' }
ERROR
Error: [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
- _http_outgoing.js:471 ServerResponse.setHeader
_http_outgoing.js:471:11
- error.js:20 sendResponse
[frontend]/[nuxt]/lib/core/middleware/error.js:20:9
- error.js:65 youch.toHTML.then.html
[frontend]/[nuxt]/lib/core/middleware/error.js:65:7
我的配置或依赖版本有问题吗?还是由另一个问题引起的?谢谢