리액트를 실행하려고 npm start를 입력했을 때
Dev Server has been initialized using an
options object that does not match the API schema.
오류 해결 방법
Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
- options.allowedHosts[0] should be a non-empty string.
pakage.json 파일 마지막 줄에
"options": {
"allowedHosts": ["localhost", ".localhost"],
"proxy": "https://localhost:8080/"
}
options property를
추가해주면
오류 없이 리액트가 잘 실행됩니다!