배포하기
배포 후 IE에서 react 앱 안되는 문제
GROWNFRESH
2020. 9. 14. 14:45
IE에서 에러메세지
: tui-chart 개체가 'assign' 속성이나 메서드를 지원하지 않습니다.
* 원인
Object.assign 등 IE에서 지원하지 않는 EC6 문법이 tui-chart 에서 사용되기 때문.
assign 을
* 해결
해당 EC6 문법 지원해주는 babel polyfill 을 tui-chart 불러오기 전에 호출해주면 됨.
( 아래 구문을 public의 index.html에 삽입하였음)
<script src="https://unpkg.com/core-js-bundle@3.1.4/index.js"></script>
<script src="https://unpkg.com/regenerator-runtime@0.13.3/runtime.js"></script>
참고