Programming Guide/Electron

[ Electron ] require is not defined 오류 해결 방법

발효홍삼 2023. 2. 16. 23:48
728x90

일렉트론 openDevTools 을 이용하여 F12 메뉴를 보는데 require is not defined 라고 뜬다

찾아보니 nodeIntegration:false 인부분을 true 로 바꿔주면 된다는데 해결되지 않았다.

contextIsolation : false 라는걸 추가해주니 해결되는 것을 확인했다.

728x90