Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 랜덤코드
- 웹
- random-chords
- 크러쉬 - 춤
- PQ92-3BWF
- 한국어
- 무접점키보드
- LRH 식물
- random chord
- 당겨서새로고침
- 래퍼럴
- pulltoreload
- 어퍼스트럭쳐
- gethostname
- PQ92
- 리마커블
- 한글폰트
- 크러시
- 한글
- vanilla.js
- 펜윅트리
- 퓨어Q9
- remarkable
- BI트리
- CSS #그라데이션 #선형 #이미지위에
- 2934
- 리마커블2
- LRH식물
- 바이낸스
- 앱코
Archives
- Today
- Total
toujours
electron 으로 file i/o 하기 중 require 오류해결. 본문
electron 5.0.0 "Uncaught ReferenceError: require is not defined"
I had initially been using electron stable (4.x.x), and was able to use require in both my browser and renderer processes. I upgraded to electron beta (5.0.0) because I needed a newer version of no...
stackoverflow.com
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
preload: path.join(__dirname, "preload.js"),
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true,
},
});
위와같이
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true,
이렇게 세개 추가하여해결.
상위버전에서는 저렇게 해줘야 require쓸수있음.
반응형
Comments