본문 바로가기

개발 이야기/플러터 개발

플러터 웹 - 에러 해결 방법

728x90

플러터 웹으로 프로젝트를 하고 있는데,

 

아래와 같은 에러가 발생한다면,,,

 

Failed to establish connection with the application instance in Chrome.
This can happen if the websocket connection used by the web tooling is unable to
correctly establish a connection, for example due to a firewall.

 

구글링 해보니 아래와 같은 해결책을 발견 했습니다.

=>

https://stackoverflow.com/questions/59874808/finished-with-error-failed-to-establish-connection-with-the-application-instanc

<==

 

결론은 아래와 같이 하면 해결됩니다.

flutter run -d chrome --release

 

즉, release 모드로 실해하는 것입니다.