[TanStack Query] Type 'string[]' has no properties in common with type 'InvalidateQueryFilters'.ts(2559)
·
WEB/error
🚨 문제 상황import {useMutation, useQueryClient} from '@tanstack/react-query';import {deleteMedication} from '@/apis/medication/deleteMedication';export const useDeleteMedication = () => { const queryClient = useQueryClient(); return useMutation({ mutationFn: deleteMedication, onSuccess: () => { queryClient.invalidateQueries(['medicationList']); }, onError: (error: Error) => { ..
[React] svgr 세팅 - Duplicate identifier 'src'.
·
WEB/error
🚨 문제 상황svgr을 쓰기 위해 환경세팅을 하고 있었다.  global.d.tsdeclare module '*.svg' { import * as React from 'react'; export const ReactComponent: React.FC>; const src: string; export default src;}  위 파일의 마지막 src 부분에서 계속 아래와 같은 에러가 뜬다.  이름을 계속 바꿔봤는데 계속 안된다..저기서 중복되었다는 client.d.ts로 들어가 봤다.C:\\S11P12A808\\front-end\\node_modules\\vite\\client.d.ts  여기서 이미 선언되었다고 나온다.global.d.ts 내용이 덮어 써지는 건 줄 알았는데 아닌가 보다..일단..
[Next.js] React Hydration Error
·
WEB/error
🚨 에러 발생Unhandled Runtime ErrorError: Text content does not match server-rendered HTML.See more info here:  🧨 문제 상황공식 문서: Text content does not match server-rendered HTML더보기Incorrect nesting of HTML tags nested in another  tag nested in a  tag or  nested in a  tagInteractive Content cannot be nested ( nested in a  tag,  nested in a  tag, etc.)Using checks like typeof window !== 'undefined' in y..
[html] svg 높이 설정 에러
·
WEB/error
🚨 에러 발생Error: attribute height: Expected length, "auto". 🧨 문제 상황svg 파일에 width, height를 current로 설정해뒀는데 import하여 사용할 때 아래처럼 width에 값을 주고 height를 auto로 설정했더니 이런 에러가 떴다.// icon svg// component svg 파일에서 height를 auto로 바꿔보기도 했지만 문제는 여전했다.height를 auto로 설정해서 생긴 문제인데 아이콘이 정사각형인 경우면 height를 width와 똑같이 지정하면 되지만, 직사각형인 경우에는 width를 지정한 후에 height를 몇으로 줘야 할지 알 수 없었다. 🚔 해결 방법이전까지는 svg 파일에서 width, height를 커스..
[yarn] yarn : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\user\AppData\Roaming\npm\yarn.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https://go.microsoft.com/fwlink/?LinkID=135170)를 참조하십시오.
·
WEB/error
🚨 문제 상황 🥁 해결 방법윈도우에서 PowerShell의 실행 정책 때문에 발생한 문제라고 한다.yarn.ps1 파일을 실행하려고 할 때, 시스템에서 스크립트 실행이 차단되고 있다. 1. PowerShell을 관리자 권한으로 실행 2. 실행 정책 확인Get-ExecutionPolicyRestricted로 설정되어 있었다. 이를 RemoteSigned로 변경해서 로컬에서 실행되는 스크립트는 허용하고, 원격에서 받은 스크립트는 서명이 필요하도록 설정한다. 3. 실행 정책 변경Set-ExecutionPolicy RemoteSigned -Scope CurrentUser위 명령어로 실행 정책을 RemoteSigned로 변경한다.3번을 완료하고 2번을 다시 해보면 RemoteSigned라고 뜬다. 이제 yar..
[Spring] Name for argument of type [java.lang.String] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.
·
WEB/error
🚨 문제 상황심각: 경로 [/spring_ws_08_2]의 컨텍스트 내의 서블릿 [appServlet]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께, 예외 [Request processing failed: java.lang.IllegalArgumentException: Name for argument of type [java.lang.String] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.]을(를) 발생시켰습니다.java.lang.IllegalArgumentExcept..