Notice
Recent Posts
Recent Comments
Link
«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Archives
Today
Total
관리 메뉴

차근차근

[JS] spread operator(...) : Unexpected token 본문

대학교/etc

[JS] spread operator(...) : Unexpected token

SWKo 2020. 7. 20. 20:38

1. Error

  • Spread Operator인 ... 에서 Unexpected token 에러가 떴다.


2. Solution

  • .babelrc 파일에 문제가 있었다.
  • npm instal babel-preset-stage-3 실행 후 다음과 같이 "stage-3"을 추가

  • 해결됨.
Comments