New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature/#80] MSW 적용 #83
Changes from all commits
3971cff
8296ed0
903816f
8dbfc87
97847f6
bff906a
6370991
a980b16
50daab8
0baf6d8
841cfaa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Next.js: debug server-side", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "npm run dev" | ||
}, | ||
{ | ||
"name": "Next.js: debug client-side", | ||
"type": "pwa-chrome", | ||
"request": "launch", | ||
"url": "http://localhost:3000" | ||
}, | ||
{ | ||
"name": "Next.js: debug full stack", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "npm run dev", | ||
"console": "integratedTerminal", | ||
"serverReadyAction": { | ||
"pattern": "started server on .+, url: (https?://.+)", | ||
"uriFormat": "%s", | ||
"action": "debugWithChrome" | ||
} | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,9 @@ const nextConfig = { | |
// Docker를 위한 설정 | ||
// https://nextjs.org/docs/advanced-features/output-file-tracing | ||
output: 'standalone', | ||
experimental: { | ||
esmExternals: false, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이건 어떤 이유로 false로 설정해준거야? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. msw가 node 12 기준으로 되어있어서 esm을 지원안하고있어. nextJS 12버전부터는 esmExternals: true가 default인데 true면 CommonJS보다 ESM을 먼저 로딩하는 것 같던데(링크) 그때 충돌이 나는지 MSW사용할 때 에러가 발생하더라고. 그래서 꺼줬어 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pure ESM모듈이 혹시 적용안되나 chalk v5 다운받아서 테스트해봤는데 잘되길래 괜찮구나 싶어서 저렇게 해놨어! 혹시 라이브러리 다운받을 때 이슈생기면 저 부분일 수도 있어서 알아두면 좋을 것 같아 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 아 오키오키 👍 |
||
}, | ||
}; | ||
|
||
module.exports = nextConfig; |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 vscode 설정파일은 어떤 역할인거야?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요건 breakpoint 걸어두고 디버거 돌리면서 디버깅했는데, nextJS에서 디버깅 돌릴 때 넣어줘야되는 것 같더라고?