본문 바로가기

에러3

[NEXT.js 14] 5. Layout(feat. { children }: { children: ReactNode }) props Layout  1. 정의 & 특성   2. 코드 예시   3. 관련 에러상세  1. 정의 & 특성Next.js 에는 Layout 컴포넌트가 존재하고 이는 여러 경로간에 공유되는 UI입니다. Layout 컴포넌트는- 파일에서 React 구성요소를 내보내도록 정의할 수 있고,- 렌더링 중에 하위에 레이아웃(page UI)가 존재할 경우, 하위 요소를 받아오기 위한 children props를 작성해야 합니다.  ㄴ 이를 하기 위해서는, { children }: { children: ReactNode } 구문을 사용해서 이뤄질 수 있습니다. { children }: { children: ReactNode } 이 구문은 TypeScript의 객체 구조 분해와 타입 정의를 결합한 것입니다.(따라서, 객체의 특정 .. 2024. 6. 18.
[Figma] We can't open that file 에러 해결 (WebGL) 접근 (요약) Figma를 사용하던 와중 예기치 않은 에러와 맞닥뜨렸습니다. "We can't open that file"이라며 크롬 브라우저 내 WebGL 설정 관련 에러였습니다. 해결토록 합시다. 1. 에러 메시지 2. 해결 방법 1. 에러 메시지 Uh oh... we can't open that file we can't open the editor because WebGL isn't supported, or is disabled, in your browser. if your browser supports WebGL, check out this help article to find out how to enable it. 2. 에러 해결 1단계) chrome://flags 접속 2단계) WebGl Dr.. 2023. 12. 13.
[python에러] UnboundLocalError: local variable 'xxxxx' referenced before assignment 필요성 " UnboundLocalError: local variable 'xxxxx' referenced before assignment " 에러를 맞닥뜨렸습니다. 위 에러는 전역변수를 지역변수로 호출했기 때문에 발생한 것으로 이를 해결하기 위한 조치를 메모하겠습니다. 접근 1. UnboundLocalError: local variable 'xxxxx' referenced before assignment 에러란? 2. 예제 3. 조치 방법 1. "UnboundLocalError: local variable 'xxxxx' referenced before assignment" 에러란? 파이썬 코드 작업 중, 전역변수를 선언(abc)했고, 이 전역변수를 함수 내부에서는 지역변수로 사용할 때, 값을 변동하고자 .. 2023. 8. 31.