admin管理员组

文章数量:1400149

I'm getting a odd error when I try to build my next.JS app, this is the first time Ive never seen an error come like this from building and I'm not too sure how to debug it as all it points to is the bundled files.

Linter passes fine, but when it comes to building the pages, within 2s it instantly throws a heck ton of errors into the console talking about a refused connection to something.

Ive checked my code for any bits that may be causing it and reverted a lot of imports to dynamic imports so they don't run on import, but the issue still persists. Any help would be appreciated as i have 0 clue what is going on.

[INTERNAL SERVER ERROR]:
Error [AggregateError]:
    at Z.from (C:\Users\k\.next\server\chunks\470.js:1:235831)
    at y.<anonymous> (C:\Users\k\.next\server\chunks\470.js:3:9597)
    at m.<computed> (C:\Users\k\.next\server\chunks\470.js:1:60918)
    at aD.request (C:\Users\k\.next\server\chunks\470.js:3:21243)
    at async g (C:\Users\k\.next\server\chunks\659.js:1:3343)
    at async x (C:\Users\k\.next\server\chunks\659.js:1:7371)
    at async W (C:\Users\k\.next\server\chunks\659.js:1:8268)
    at async (C:\Users\k\.next\server\chunks\659.js:1:3542)
    at async g (C:\Users\k\.next\server\chunks\659.js:1:3343)
    at async x (C:\Users\k\.next\server\chunks\659.js:1:7371)
    at async W (C:\Users\k\.next\server\chunks\659.js:1:8268)
    at async (C:\Users\k\.next\server\chunks\659.js:1:3542) {
  code: 'ECONNREFUSED',
  errors: [Array],
  config: [Object],
  request: [Writable],
  constructor: [Function],
  toJSON: [Function: toJSON],
  [cause]: [AggregateError: ] { code: 'ECONNREFUSED' }
}

I would provide code files but quite frankly I have 0 idea where it is stemming from.

本文标签: Nextjs Build Error INTERNAL SERVER ERROR Error AggregateErrorStack Overflow