오류 7

React 오류 기록 Uncaught TypeError: Cannot read properties of undefined (reading 'pathname')

React 오류 기록 Uncaught TypeError: Cannot read properties of undefined (reading 'pathname') 🤯 문제 path 이름이 정의가 되지 않았다고 하는데, 그걸 어디서 정의하지? 직독직해 하는 기분.... 🥳 문제 해결 import { BrowserRouter, Route, Routes } from "react-router-dom"; ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ BrowserRouter안에 넣으니까 pathname도 찾나보다.. 드디어 화면에 뜬다!!!🤸🏻‍♀️🤸🏻‍♀️

React 오류 기록 Uncaught Error: useRoutes() may be used only in the context of a <Router> component.

React 오류 기록 Uncaught Error: useRoutes() may be used only in the context of a component. 🤯 문제 해석을 해 보자면, useRouter()는 로 감싸야 한다,, 라는데 이게 감싼게 아닌가보다.. 🥳 해결 방법 import { BrowserRouter as Route, Router, Routes } from "react-router-dom"; 로 감싸고, element 옆에 경로 제대로 설정 거짓말,, 또 다른 오류에 봉착!🤯🤯🤯 유쾌하지못한 오류 시리즈는 계속 된다😥😥😥😥😥😥

React 오류 기록 npm start와 yatn start가 안될 때

React 오류 기록 npm start와 yarn start가 안될 때 ➡ npm start 오류 내용 npm ERR! Missing script: "start" npm ERR! npm ERR! Did you mean one of these? npm ERR! npm star # Mark your favorite packages npm ERR! npm stars # View packages marked as favorites npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\admin\AppData\Local\np..

Git 오류 기록 혼자서 낸 충돌(conflict)

유쾌하지 못한 Git 오류 기록 - 1 사용한지 얼마 안된 Git 팀 프로젝트 사용하면서 뿐만 아니라, 나 혼자 사용할 때에도 절대로 만나고 싶지 않았던 충돌을 만났다. 아직 Git이랑 낯가리는데 진짜 주먹으로 부시고 싶었음. 해결했다고 생각했는데, 너무 태연하게 시간역행한 모습을 보여주길래, 당황해서 한 겨울에 혼자 다한증 걸릴 뻔😂 주절주절.. 혼자 내는 충돌도 나쁘진 않아요.. 함께 내는 것보다 덜 우울하니까.. 내 목표는 가볍고 소소하게, 테이블에 스티키헤더를 적용하는 것이었다.. Mui 가져다 써서 완성을 했는데, 브랜치를 잘못 설정을 한 듯(추측) 해결 방법 사이에 있는 문장들을 지워주라고 한다. 지워주고 뭔가 이 짓을 그만한다는 뜻인줄알고 closed를 어디선가 눌렀떠니 갑자기 빨갛게 뜸 초..

React 오류 기록 You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

was not found in '경로' 이거 뜻 경로에서 찾을수 없습니다 아닌가?? 저 경로에 있잖아! 왜저래! 같은 폴더 안에 차곡차곡 잘 있으면서 거짓말치지마,,, react-jsx-dev-runtime.development.js:87 Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and n..