본문 바로가기

반응형

분류 전체보기

(9217)
redirect in react 18에 오류 해결 방법 import { Navigate } from 'react-router-dom'; } /> import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';import ErrorPage from './ErrorPage';import Home from './Home';function App() { return ( } /> {/* The next line is very important for the Navigate component to work */} } /> ..
This expression is not callable. Type 'typeof import("X:/xxx/node_modules/date-fns/format")' has no call signatures. 오류발생 부분export function formatDate(date: Date) { return format(date, 'yyyyMMdd') ;}  수정export function formatDate(date: Date): string { const day = date.getDate().toString().padStart(2, '0'); const month = (date.getMonth() + 1).toString().padStart(2, '0'); const year = date.getFullYear(); return `${year}${month}${day}`; // return format(date, 'yyyyMMdd') ;}
React, Module '"react-i18next"' has no exported member 'TFunction'. 오류 해결 Module '"react-i18next"' has no exported member 'TFunction'. 오류 발생. 아래 실행하여 해결yarn add react-i18next@11.8.15 --save-dev
Cannot find module 'ag-grid-react' or its corresponding type declarations. 오류 해결 아래 명령어 실행 후 정상 작동 yarn add ag-grid-react --save-dev
Can't resolve 'lodash.clonedeep' 해결방법 yarn add lodash --save-dev추가 했으나 동일하게 오류 발생...Module not found: Error: Can't resolve 'lodash.clonedeep' in 'C:\front\_ui\src\routes\MaterialManagementPage'ERROR in ./src/routes/MaterialManagementPage/MaterialManagementPage.tsx 7:0-41Module not found: Error: Can't resolve 'lodash.clonedeep' in 'C:\front\_ui\src\routes\MaterialManagementPage'webpack compiled with 1 errorFiles successfully emitted,..
React Type 'T' does not satisfy the constraint 'FieldValues'. 오류 해결 오류export type TConditionBaseProps = { defaultValues?: T; onSubmit: SubmitHandler; onReset?: () => void;}; 해결export type TConditionBaseProps = { defaultValues?: T; onSubmit: SubmitHandlerT>; onReset?: () => void;};
mui listitem Property 'button' does not exist on type // v4...// v5 ...
React Typescript AG-Grid package.json package.json{ "name": "viw", "version": "0.0.1", "private": true, "dependencies": { "@ag-grid-community/client-side-row-model": "^32.1.0", "@ag-grid-community/core": "^32.1.0", "@ag-grid-community/csv-export": "^32.1.0", "@ag-grid-community/infinite-row-model": "^32.1.0", "@ag-grid-community/react": "^32.1.0", "@ag-grid-community/styles": "^32.1.0", "@emotion/react": "^1..

반응형