관리 메뉴

개발이야기

[TIL] typescript 에러 해결 본문

Today I Learned /TIL

[TIL] typescript 에러 해결

안성주지몬 2020. 3. 2. 00:00

- 에러 

" [ts] Cannot invoke an expression whose type lacks a call signature. Type 'typeof import("/your_project/node_modules/axios/index")' has no compatible call signatures.  "

 

 

- 문제상황

import * as axios from 'axios';

 

- 해결 방법 

import axios from 'axios'

 

참고 

https://github.com/axios/axios/issues/734

0 Comments
댓글쓰기 폼