일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- H2O
- kakao
- C lanuage
- NGINX
- 한글
- 번역
- ubuntu
- techEmpower
- it
- MySQL
- mariadb
- 자바
- 개발자
- 해석
- 안드로이드
- server
- 프래그먼트
- android
- php
- error
- javascript
- 컴퓨터과학총론
- java
- unity
- centOS7
- C
- Portfolio
- caddy
- 구글
- 개발
- Today
- Total
목록client (68)
개발모음집
npm install webpack -g webpack을 글로벌 설치하고도 webpack 명령어가 입력되지 않음. npm install --save-dev webpack-cli 출처: https://github.com/webpack/webpack-cli/issues/944
jest로 test하는 와중에 아래와 같은 에러 발생 ● Test suite failed to run Jest encountered an unexpected token This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript. By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules". Here's what you can do: • To have some of your "node_modules" files transformed, yo..
1. --compilers is DEPRECATED and no longer supported 에러 "scripts": { "test": "mocha --reporter spec --compilers ts:ts-node/register ./src/test/app.spec.ts", }, 출처 : https://github.com/dezet/express-typescript-tdd/blob/master/package.json 위와 같이 test코드를 실행시키려 했는데, "--compilers is DEPRECATED and no longer supported" error 발생 2. Cannot find module 'ts:ts-node/register' 에러 아래와 같이 변경했더니 "test": "moch..
{ "name": "voiddeveloper-backend", "version": "1.0.0", "description": "", "main": "app.js", "scripts": { "start": "node app.js", "build": "pm2 start app.js", "test": "mocha spec/app.spec.js" }, "repository": { "type": "git", "url": "git+https://github.com/voiddeveloper/voiddeveloper-backend.git" }, "keywords": [ "voiddeveloper" ], "dependencies": { "cookie-parser": "^1.4.4", "cors": "^2.8.5", "d..
const value = 'copy text'; const input_temp = document.createElement("input"); input_temp.value = value; document.body.appendChild(input_temp); input_temp.select(); document.execCommand("copy"); document.body.removeChild(input_temp); 출처 : https://stackoverflow.com/questions/50795042/create-a-copy-button-without-an-input-text-box
.eslintrc 파일의 rule에서 'import/extensions': [ 'error', 'ignorePackages', { js: 'never', jsx: 'never', ts: 'never', tsx: 'never', json: 'never', }, ], 를 입력하면 됨 결과 : .eslintrc파일 module.exports = { parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint'], extends: [ 'airbnb-base', 'plugin:@typescript-eslint/eslint-recommended', ], rules: { indent: ['error', 4], 'import/extensions': [ 'err..
첫 번째 해결법 .eslintrc 파일에서 rules안에 "import/no-unresolved": "off", 입력하면 됨 결과: .eslintrc 파일 module.exports = { parser: "@typescript-eslint/parser", plugins: ["@typescript-eslint"], extends: [ // Airbnb style guide 적용 "airbnb-base", // TypeScript ESLint recommanded style 적용 "plugin:@typescript-eslint/eslint-recommended" ], "rules": { "indent": ["error", 4], "import/no-unresolved": "off" } }; 두 번째 해결법 ..
import React, {Component} from 'react'; class App extends Component { constructor(props){ super(props); //1. constructor 안에서 state 초기화 this.state = {term: ''}; } //2. constructor 밖에서는 setState로 state를 초기화해줘야한다. render () { return this.setState({term: event.target.value })} />; } }; export default App;