기타
-
self.crypto.randomUUID() is not a function기타/IDE 2023. 12. 21. 03:32
1. Localhost는 secure origin으로 간주한다. 2. Web Cryptography API는 secure origin에서 작동한다. 다른 팀원들은 정상작동하는데, 한 팀원에게서만 코드가 작동하지 않는 상황을 만났습니다. reviewBtn.addEventListener("click", () => { const uuid = self.crypto.randomUUID(); localStorage.setItem(uuid, { name: 'hi' }); } // Uncaught TypeError: self.crypto.randomUUID is not a function self.crypto.randomUUID()가 함수가 아니라는 에러를 주는 상황입니다. 브라우저의 버전이나 종류에 문제가 있을 것이..
-
Homebrew 사용해서 새로운 자바 버전 추가설치 중 발생한 이슈기타/MAC OS 2023. 12. 18. 17:59
기존에 설치 되어있던 자바 관련 파일들을 지우고 JAVA8과 JAVA11을 설치하려던 중에 만난 에러에 대한 기록입니다. $ brew search jdk 위 명령어를 실행하니 바로 나오는 에러.. 뭔가 동일한 파일이 여러 경로에 설치된 상태인 것 같습니다. $ brew tap 위 명령어로 현재 사용중인 tap을 볼 수 있습니다. 아래 명령어로 adoptopenjdk/openjdk 탭을 제거하였습니다. cd /opt/homebrew/Library/Taps/ 에 있는 파일이 삭제됩니다. $ brew untap adoptopenjdk/openjdk 이제 원하는 버전을 설치하면 됩니다. $ brew install --cask 설치 성공!
-
명령어 idea . 으로 intellij 실행이 안될 때기타/IDE 2023. 12. 16. 16:58
이번 이슈는 기존에 설치되어있는 intellij 2022 버전을 터미널에서 idea로 실행가능하게 설정해두었는데, 그것을 잊고 2023 버전을 새로 받으면서 idea로 실행이 안되었던 이슈입니다 ㅎㅎㅎ 검색으로 toolbox를 사용해야 터미널에서 실행이 된다고 하는 글들을 보아서 바로 toolbox를 설치했습니다. ( 하지만 toolbox 없어도 사용 터미널 실행가능) https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html#toolbox 링크 따라서 세팅하고 idea . 을 실행했는데 아래와 같은 에러를 줍니다. /Applications/IntelliJ-ce.app cannot be opend ......