Error Handling
-
[SvelteKit] Object literal may only specify known properties, and '"gs-w"' does not exist in type 'HTMLProps<"div", HTMLAttributes<any>>'.ts(2353)Error Handling 2025. 3. 26. 18:17
SvelteKit 으로 웹 프로젝트 개발 중, Drag and Drop 및 레이아웃 커스텀 기능을 사용하기 위해 GridStack.js 를 사용하게 되었는데,사이즈 조절을 위해 GridStack 에서 임의의 속성값을 Element 에 설정해주어야한다. 이때, 다음과 같은 에러가 발생하면서 빨간줄이 생겨 몹시 거슬리는 상황이었다. 에러 내용Object literal may only specify known properties, and '"gs-w"' does not exist in type 'HTMLProps>'.ts(2353) 구글링해도 나오지 않고, GPT 도 통쾌한 답을 내지 못하는 상황,,,, SvelteKit 프로젝트를 뒤적거리다 .svelte-kit 하위의 non-ambient.d.ts 파일을 ..
-
[Linux] 리눅스 logrotate Error "error: skipping "/var/log/" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be usedError Handling 2024. 9. 12. 11:39
해당 에러는 권한 설정 문제로 발생. /etc/logrotate.d/ 디렉토리에 생성한 logrotate 파일의 내용에 su root root 를 추가해주면 에러를 해결할 수 있다./mnt/C/Users/user/Pipeline/mosquitto/mosquitto.log { su root root ### daily, weekly, monthly: 로그 회전 주기를 설정합니다. daily는 매일, weekly는 매주, monthly는 매달 로그 파일을 회전합니다.rotate N: 로그 파일을 N개까지 유지합니다. 오래된 파일은 삭제됩니다.compress: 회전된 로그 파일을 압축하여 저장합니다.delaycompress: 가장 최근에 회전된 로그 파일은 압축하지 않고, 그다음 회전 시 압축됩니다.mi..
-
[SvelteKit] Error: The following routes were marked as prerenderable, but were not prerendered because they were not found while crawling your app: /, /...Error Handling 2024. 9. 9. 16:57
sveltekit 기반 프로젝트 진행 중, server.ts 부분에서 redirect 를 추가하고 build 하니 다음와 같은 에러가 발생했다. 서칭 결과, 이 오류는 해당 경로(또는 상위 레이아웃, 페이지의 경우)가 export const prerender = true로 설정되었지만, 사전 렌더링 크롤러가 그 페이지를 찾지 못해 사전 렌더링이 되지 않았기 때문에 발생한다고 한다. 이러한 경로들은 동적으로 서버 렌더링될 수 없기 때문에, 사용자가 해당 경로에 접근하려고 할 때 오류가 발생할 수 있다.이를 해결하는 방법은 다음과 같다. SvelteKit의 config.kit.prerender.entries 또는 entries 페이지 옵션에서 링크를 따라 해당 경로를 찾을 수 있도록 설정.동적 경로(즉, ..
-
[Docker] Docker Desktop distro installation failed 에러 해결Error Handling 2024. 8. 30. 11:09
개요산업 현장 PC 에 설치 후, 직원분께서 Network 설정이 바뀐 뒤에 Docker Error 가 발생한다고 하여 확인해보니 Docker Desktop distro installation failed 알람창이 나타나면서 Docker-Desktop 가 실행이 안되었다. 설치할 때, WSL2 설정도 같이 했었는데, Network 가 바뀌면서 설정 충돌로 인해 에러가 발생하는것 같았다. 해결1. 우선 Docker-Desktop 을 종료해준다.2. 아래 명령어로 터미널에서 WSL 에 등록된 Docker-Desktop 을 해제시켜준다.wsl --unregister docker-desktop3. Docker-Desktop 을 재실행시켜준다. (이때, 자동으로 distro 를 다시 생성하며 WSL 에 등록된다...
-
[GIT ACTIONS] Error: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.Error Handling 2024. 8. 3. 21:44
원인Git Actions 를 사용하여 Node 기반 프로젝트 CI/CD 구축하던 중에 npm install 에서 위와 같은 에러가 발생.# Local PC 가 Mac OS 라면, Package.lock.json 에 @rollup/rollup-darwin-arm64 로 작성되어 있어서 에러가 발생. # 따라서, @rollup/rollup-linux-x64-gnu 로 변경해주거나 설치해주어야 함. 해결npm install @rollup/rollup-linux-x64-gnu --save-optional && npm install 위와 같이 @rollup/rollup-linux-x64-gnu를 설치 해주니까 정상적으로 npm modules 들이 설치되었다.
-
[NPM] npm publis 시 에러 npm ERR! 402 Payment RequiredError Handling 2024. 8. 3. 21:24
원인npm package 를 배포하려고 npm publish 명령어를 입력했는데, npm ERR! 402 Payment Required 에러가 발생했다.찾아보니 접근 권한이 default로 private 으로 되어있는데, 이는 유료정책을 사용해야하고 public 으로 해야 사용이 가능하다는 것. 해결--access=public 옵션을 붙여 실행해주었다.성공적으로 배포가 되면, 아래와 같이 출력된다.