인프런 커뮤니티 질문&답변
안녕하세요!! 빌드중에 오류가 나와서요..
작성
·
1.6K
0
> Build error occurred
Error: Export encountered errors on following paths:
/about
at exportApp (C:\Users\thdwl\OneDrive\바탕 화면\nodebird\prepare02\front\node_modules\next\dist\export\index.js:24:1103)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async build (C:\Users\thdwl\OneDrive\바탕 화면\nodebird\prepare02\front\node_modules\next\dist\build\index.js:37:212)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
이건 무엇이 문제일까요....
답변 5
1
0
제로초님 죄송한데
지금 빌드가 됐는데..
빌드를 서버를 키고 해야 하는가 보네요...
프론트 백엔드 서버 키고 하니까 되네요..
서버끄고 해야하는 주 알고 끄고 하고 있었는데
감사합니다.
0
0
next build 해서
build 도중에 오류가 나왔습니다.
C:\Users\thdwl\OneDrive\바탕 화면\nodebird\prepare02\front>npm run build
> react-nodebird-front@1.0.0 build C:\Users\thdwl\OneDrive\바탕 화면\nodebird\prepare02\front
> next build
info - Using external babel configuration from C:\Users\thdwl\OneDrive\바탕 화면\nodebird\prepare02\front\.babelrc
info - Creating an optimized production build
info - Compiled successfully
info - Collecting page data
[ ===] info - Generating static pages (1/2){ type: 'LOAD_USER_REQUEST', data: 1 }
{ type: '@@redux-saga/CHANNEL_END' }
[= ] info - Generating static pages (1/2)Error: connect ECONNREFUSED 127.0.0.1:3065
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) {
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 3065,
config: {
url: '/user/1',
method: 'get',
headers: {
Accept: 'application/json, text/plain, */*',
'User-Agent': 'axios/0.19.2'
},
baseURL: 'http://localhost:3065',
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
withCredentials: true,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus],
data: undefined
},
request: Writable {
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: false,
decodeStrings: true,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: true,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
bufferedRequest: null,
lastBufferedRequest: null,
pendingcb: 0,
prefinished: false,
errorEmitted: false,
emitClose: true,
autoDestroy: false,
bufferedRequestCount: 0,
corkedRequestsFree: [Object]
},
writable: true,
_events: [Object: null prototype] {
response: [Function: handleResponse],
error: [Function: handleRequestError]
},
_eventsCount: 2,
_maxListeners: undefined,
_options: {
protocol: 'http:',
maxRedirects: 21,
maxBodyLength: 10485760,
path: '/user/1',
method: 'GET',
headers: [Object],
agent: undefined,
agents: [Object],
auth: undefined,
hostname: 'localhost',
port: '3065',
nativeProtocols: [Object],
pathname: '/user/1'
},
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_onNativeResponse: [Function],
_currentRequest: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 6,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [Socket],
connection: [Socket],
_header: 'GET /user/1 HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'User-Agent: axios/0.19.2\r\n' +
'Host: localhost:3065\r\n' +
'Connection: close\r\n' +
'\r\n',
_onPendingData: [Function: noopPendingOutput],
agent: [Agent],
socketPath: undefined,
method: 'GET',
insecureHTTPParser: undefined,
path: '/user/1',
_ended: false,
res: null,
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
_redirectable: [Circular],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
_currentUrl: 'http://localhost:3065/user/1',
[Symbol(kCapture)]: false
},
response: undefined,
isAxiosError: true,
toJSON: [Function]
}
info - Generating static pages (2/2)
> Build error occurred
Error: Export encountered errors on following paths:
/about
at exportApp (C:\Users\thdwl\OneDrive\바탕 화면\nodebird\prepare02\front\node_modules\next\dist\export\index.js:24:1103)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async build (C:\Users\thdwl\OneDrive\바탕 화면\nodebird\prepare02\front\node_modules\next\dist\build\index.js:37:212)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-nodebird-front@1.0.0 build: `next build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-nodebird-front@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\thdwl\AppData\Roaming\npm-cache\_logs\2020-09-25T03_52_38_229Z-debug.log
이렇게요.
0




