<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>JavaScript on DevTrace — 글로벌 개발 에러 트러블슈팅</title><link>https://tokkabi.com/tags/javascript/</link><description>Recent content in JavaScript on DevTrace — 글로벌 개발 에러 트러블슈팅</description><generator>Hugo -- 0.125.0</generator><language>ko</language><lastBuildDate>Thu, 20 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tokkabi.com/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title>React 'Minified exception occurred' 에러 — NODE_ENV=development로 전체 에러 메시지 확인하기</title><link>https://tokkabi.com/posts/react-minified-exception-occurred/</link><pubDate>Thu, 20 Aug 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/react-minified-exception-occurred/</guid><description>React에서 &amp;#39;Uncaught Error: Minified exception occurred&amp;#39; 에러가 발생할 때, NODE_ENV=development로 빌드하면 원래 에러 메시지를 확인할 수 있습니다. browserify, webpack, vite 등 번들러별 전체 에러 메시지 확인 방법과 함께 원인 후보별 디버깅 체크리스트를 정리합니다.</description></item><item><title>Express에서 'Can't set headers after they are sent' 오류 해결하기</title><link>https://tokkabi.com/posts/error-cant-set-headers-after-they-are-sent/</link><pubDate>Mon, 17 Aug 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/error-cant-set-headers-after-they-are-sent/</guid><description>Node.js/Express에서 &amp;#39;Can&amp;#39;t set headers after they are sent to the client&amp;#39;가 발생하는 원인은 응답이 시작된 뒤 헤더를 설정하거나 중복 응답을 보내기 때문입니다. 콜백 중복 호출·redirect 후 에러 발생 등 원인을 파악하고 res.header를 본문 전에만 호출하는 해결책을 제시합니다.</description></item><item><title>PhoneGap/Cordova Android 앱을 강제로 크래시 시키는 방법 — JS 예외가 잡히지 않는 이유</title><link>https://tokkabi.com/posts/how-to-make-my-phonegap-android-app-crash/</link><pubDate>Fri, 14 Aug 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/how-to-make-my-phonegap-android-app-crash/</guid><description>PhoneGap/Cordova Android 앱에서 자바스크립트 unhandled exception이 발생해도 앱이 크래시하지 않는 이유를 설명하고, CordovaActivity.java의 onCreateOptionsMenu에서 RuntimeException을 던지는 방법과 네이티브 플러그인에서 예외를 던지는 방법을 단계별로 소개합니다. 크래시 리포터 플러그인 테스트에 유용합니다.</description></item><item><title>npm 패키지 설치 시 'Unable to resolve dependency tree' ERESOLVE 오류 해결</title><link>https://tokkabi.com/posts/unable-to-resolve-dependency-tree-error-when-installing-npm/</link><pubDate>Thu, 06 Aug 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/unable-to-resolve-dependency-tree-error-when-installing-npm/</guid><description>npm 패키지 설치 중 ERESOLVE 오류로 의존성 트리를 해석하지 못하는 문제를 다룹니다. Angular 버전 간 peer dependency 충돌이 원인이며, --legacy-peer-deps나 --force 옵션 또는 Node.js 버전 다운그레이드로 해결할 수 있습니다.</description></item><item><title>Node.js heap out of memory 크래시 원인과 해결 (--max-old-space-size)</title><link>https://tokkabi.com/posts/nodejs-heap-out-of-memory/</link><pubDate>Sun, 02 Aug 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/nodejs-heap-out-of-memory/</guid><description>Node.js에서 대용량 데이터를 처리할 때 &amp;#39;heap out of memory&amp;#39; 크래시가 발생하는 문제를 다룬다. V8 엔진의 기본 메모리 한도(약 1.7GB)를 초과하면 발생하며, --max-old-space-size 옵션으로 구(old space) 메모리 한도를 늘려 해결한다. 파일 인덱싱, 대량 배열 처리 등에서 자주 나타난다.</description></item><item><title>JavaScript에서 undefined 확인하는 방법 — typeof vs in 연산자</title><link>https://tokkabi.com/posts/how-can-i-check-for-undefined-in-javascript/</link><pubDate>Wed, 29 Jul 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/how-can-i-check-for-undefined-in-javascript/</guid><description>JavaScript에서 변수가 undefined인지 확인하는 방법을 typeof, in 연산자, 직접 비교로 나눠 설명합니다. 선언되지 않은 변수는 직접 접근 시 ReferenceError를 일으키므로 typeof가 안전합니다. 상황별 올바른 선택 기준을 코드 예제와 함께 정리합니다.</description></item><item><title>JSON.parse 예외 안전하게 처리하기 — try-catch로 404/무효 JSON 오류 잡기</title><link>https://tokkabi.com/posts/proper-way-to-catch-exception-from-jsonparse/</link><pubDate>Thu, 23 Jul 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/proper-way-to-catch-exception-from-jsonparse/</guid><description>JSON.parse는 유효하지 않은 JSON 문자열(예: 404 응답 본문)을 파싱할 때 예외를 던집니다. try-catch 블록으로 파싱 예외를 안전하게 잡고, 성공 시에만 파싱 결과를 사용하는 방법을 5단계로 설명합니다.</description></item><item><title>브라우저에서만 발생하는 CORS 오류 'No Access-Control-Allow-Origin Header' — Postman은 왜 정상일까?</title><link>https://tokkabi.com/posts/javascript-cors-access-control-allow-origin-error/</link><pubDate>Tue, 21 Jul 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/javascript-cors-access-control-allow-origin-error/</guid><description>JavaScript로 교차 출처 요청을 할 때 브라우저에서만 발생하는 &amp;#39;No Access-Control-Allow-Origin header&amp;#39; 오류가 왜 Postman에서는 발생하지 않는지, Same-Origin Policy와 브라우저/API 클라이언트의 차이로 설명합니다.</description></item><item><title>Jest에서 예외 타입 테스트하는 방법 — toThrow로 TypeError/message 검증</title><link>https://tokkabi.com/posts/how-to-test-the-type-of-a-thrown-exception-in-jest/</link><pubDate>Sun, 19 Jul 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/how-to-test-the-type-of-a-thrown-exception-in-jest/</guid><description>Jest에서 함수가 던지는 예외의 타입(TypeError, ReferenceError 등)을 테스트하는 방법을 다룹니다. expect에 함수를 전달하고 toThrow로 예외 타입과 메시지를 검증하는 방법, AVA의 t.throws 문법에서 Jest로 마이그레이션하는 방법을 코드 블록과 비교표로 설명합니다.</description></item><item><title>자바스크립트에서 예외를 직접 throw할 때 스택 트레이스를 얻는 방법 (console.trace / Error.stack)</title><link>https://tokkabi.com/posts/how-can-i-get-a-javascript-stack-trace-when-i-throw-an-exception/</link><pubDate>Fri, 17 Jul 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/how-can-i-get-a-javascript-stack-trace-when-i-throw-an-exception/</guid><description>자바스크립트에서 throw로 예외를 직접 던질 때 함수 이름·URL·호출 체인이 담긴 스택 트레이스를 얻는 방법. console.trace()와 new Error().stack 속성을 실제 코드와 함께 정리했습니다.</description></item></channel></rss>