production 모드 일때는파일 캐싱, 에러 메시지 감추기 등 배포의 적합한 환경 설정을 하구요. development 모드 일 때는파일 캐싱 방지, 디버그를 위한 상세한 에러 메시지 보이기 등
[카테고리:] React
React & TypeScript
설치 npm i -D env-cmd env-cmdrc.js 생성하여 JS 파일로 프로퍼티를 관리할 수 있다. module.exports = Promise.resolve({ common: { ENV_PROP1: ‘값1’, ENV_PROP2: ‘값2’ }, dev: { db_url: ‘mariadb://127.0.0.1:3306/dbname’, dp_user: ‘test’, dp_psssword: ‘test’ }, prod: { db_url: ‘mariadb://xxx.xxx.xxx.xxx:3306/dbname’,…
1. Create React App에서 사용하는 ESLint 구성 패키지를 추가 yarn add eslint-config-react-app -D 2. package.json의 extends에서 react-app를 삭제하는 방법도 사용하는 것 같다. “extends”: [ “react-app” ] }, 3.package.json 파일 저장 package.json 파일을 열고 Ctrl+s로 저장한다. 4. eslint-config-react-app 버전 6으로…
오류 메시지 No overload matches this call. Overload 1 of 2, ‘(props: AgGridReactProps<any> | AgReactUiProps<any> | Readonly<AgGridReactProps<any> | AgReactUiProps<any>>): AgGridReact<…>’, gave the following error. Type ‘{ children: never[]; rowData: { make: string; model: string; price:…
오류 메시지 No overload matches this call. Overload 1 of 2, ‘(props: AgGridReactProps<any> | AgReactUiProps<any> | Readonly<AgGridReactProps<any> | AgReactUiProps<any>>): AgGridReact<…>’, gave the following error. Type ‘{ children: never[]; rowData: { make: string; model: string; price:…