Skip to main content

Command Palette

Search for a command to run...

일본 한달살이 20일차 (5월 17일)

Updated
1 min readView as Markdown
D
I created SWC, an open-source compiler project, and previously worked at Deno and Vercel. These days, I spend a lot of time building Labor0, along with Watchtower and The AI Platform at Zephyr Cloud IO.

아침으론 15분 정도 거리의 편의점에서 간단하게 파스타 사와서 먹었고, 점심으론 샐러드와 남은 고기를 먹었다.

저녁은 이자카야 가려다가 괜찮은 데가 없어서 방에서 해먹었다.

  • 고기와 두부를 추가한 마파두부 밀키트

작업일지

SWC 모노레포 정리

CI 작업이다보니 어제 다 끝내지 못해서 오늘 이어서 했다. 근데 신기한 에러를 만났다.

FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal
----- Native stack trace -----

 1: 0xb82b0c node::OnFatalError(char const*, char const*) [/opt/hostedtoolcache/node/20.13.1/x64/bin/node]
 2: 0xeee6b0 v8::api_internal::ToLocalEmpty() [/opt/hostedtoolcache/node/20.13.1/x64/bin/node]
 3: 0xcc2144  [/opt/hostedtoolcache/node/20.13.1/x64/bin/node]
 4: 0xf5596f v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [/opt/hostedtoolcache/node/20.13.1/x64/bin/node]
 5: 0xf561dd  [/opt/hostedtoolcache/node/20.13.1/x64/bin/node]
 6: 0xf566a5 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/opt/hostedtoolcache/node/20.13.1/x64/bin/node]
 7: 0x1960df6  [/opt/hostedtoolcache/node/20.13.1/x64/bin/node]

----- JavaScript stack trace -----

1: readFileSync (node:fs:448:20)
2: getContent (/home/runner/work/swc/swc/node_modules/jest-haste-map/build/worker.js:114:22)
3: worker (/home/runner/work/swc/swc/node_modules/jest-haste-map/build/worker.js:138:23)
4: _processFile (/home/runner/work/swc/swc/node_modules/jest-haste-map/build/index.js:637:8)
5: _buildHasteMap (/home/runner/work/swc/swc/node_modules/jest-haste-map/build/index.js:684:28)
6: /home/runner/work/swc/swc/node_modules/jest-haste-map/build/index.js:379:33

터보팩 Tree shaking PR

아직도 안 끝났다. contains_cjs의 문제를 고쳤고, <exports> 에서 reexport 하는 모든 모듈이 사라지는 버그를 디버깅했다. 컴파일이 오래걸리지 않아서 거의 기록은 안 했지만,

error - [transform] [project]/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/split-chunks/input/index.js  Error evaluating Node.js code
  TypeError: getValue is not a function
      at run (turbopack://[turbopack-node]/ipc/evaluate.ts:92:29) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/split-chunks/output/[root of the server]__7f7a91._.js:668:37]
      at run (turbopack://[turbopack-node]/ipc/evaluate.ts:115:11) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/split-chunks/output/[root of the server]__7f7a91._.js:689:25]
      [at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]

같은 에러가 뜰 때까지 작업했다.

대충 코드 읽어보니 getValue 은 모듈의 default export였고, default export 처리 로직엔 버그가 있다는 걸 알고 있었어서 바로 작업 들어갔다. 그리고 결과는 성공적이었다. 머지를 위해 테스트 업데이트하고 로그 찍는 코드 지우는 등 마무리 작업을 했다.

More from this blog