개발's egg
Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
현z
2023. 8. 6. 12:58
간만에 리액트로 프로토타입 만들던거 뭐 하나 올리니깐 이렇게뜸
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.
프록시 서버 하나 등록해놓은거 때문인데
왜 갑자기 안되지
어쨌든 이렇게 해결했다
packge.json 에 proxy 를 options 안에 넣어줌
"options": {
"allowedHosts": ["localhost"],
"proxy": "https://localhost:8000/"
}
packge.json 에 options 라는 키가 없다는데 꼼수인듯
미들웨어 패키지를 설치해야겠다.