전체

[Vue.js] This dependency was not found: * core-js/modules/web.dom.iterable 에러 core-jscore-js/modules/web.dom.iterable를 설치하라는 오류가 발생한 경우 기존 node-modules를 제거한 후 다시 설치하면 된다. $ rm -rf node_modules && npm install [출처] https://www.curtismlarson.com/blog/2016/05/12/webpack-cannot-find-module-web-dom-iterable/
[JavaScript] Bootstrap-Select 관련 ** bootstrap-select https://developer.snapappointments.com/bootstrap-select/ 1) $().selectpicker()는 $(document).ready() 안에 선언해야 한다. 밖에 선언할 경우 아래와 같은 오류 발생한다. 2) bootstrap-select는 아직까지 bootstrap4를 완벽히 지원하지 않는다고 한다. [#2109] elements with .form-control class don't adjust height properly since Bootstrap 4.1.3 -> bootstrap4의 js 파일이 아닌 css 파일이 제대로 적용되지 않는 것 같다. -> css는..
· WEB/Electron
[Electron] 자식창(Child Window) 자식창은 부모창 위에 보여진다. 자식창을 선언 할 때, parent: 부모창를 입력하여 부모의 자식임을 선언한다. 기본적으로 createWindow시 부모창과 자식창 모두 선언해 준다. 아래와 같이 입력하면 앱을 실행할 때 자식창과 부모창 모두 표시된다. let win; // 부모 let child; // 자식 function createWindow() { // 부모 창 선언 win = new BrowserWindow({ width: 1400, height: 1000, webPreferences: { nodeIntegration: true } }); // 자식 창 선언 child = new BrowserWindow({ parent: win, width:..
· WEB/Electron
[Electron] Access to XMLHttpRequest at '' from origin '' has been blocked by CORS policy 에러 해결 방법 Access to XMLHttpRequest at '...' from origin '...' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. 위 에러는 HTTP 접근제어(CORS)에서 볼 수 있듯이 보안 상의 이유로, 스크립트 내에서 초기화되는 cross-origin HTTP 요청을 제한함으로써 발생된 오류이다. 에러를 제거하기 위해서 웹 보안(same-origin정책)을 해제하면 된..
· WEB/Electron
[Electron] Electron + vue.js Vue-cli2 electron builder : https://simulatedgreg.gitbooks.io/electron-vue/content/ko/ $ npm install -g vue-cli $ vue init simulatedgreg/electron-vue 프로젝트 $ yarn # 또는 npm install $ yarn run dev # 또는 npm run dev Vue-cli3 electron builder : https://github.com/nklayman/vue-cli-plugin-electron-builder $ npm install -g @vue/cli $ vue create 프로젝트 $ npm run serve # 웹 접속 가능 ..
· WEB/Electron
[Electron] VSCode에서 디버깅하는 방법 .vscode/launch.json 파일을 다음과 같이 생성한다. { "version": "0.2.0", "configurations": [ { "name": "Debug Main Process", "type": "node", "request": "launch", "cwd": "${workspaceRoot}", "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", "windows": { "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd" }, "args" : ["."], "outputCapture": "std" ..
S0PH1A
'분류 전체보기' 카테고리의 글 목록 (14 Page)