๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Web/JavaScript

TypeError: axios is not a function ์˜ค๋ฅ˜ ๋ฐœ์ƒ

๋ฐ˜์‘ํ˜•

 

์›๋ž˜ ์ด cdn์„ ์“ฐ๊ณ  ์žˆ์—ˆ๋Š”๋ฐ ๋ฒ„์ „ ๋ช…์‹œ๊ฐ€ ์•ˆ๋˜์–ด์žˆ์—ˆ๋Š”๋ฐ ๋“ค์–ด๊ฐ€๋ฉด https://unpkg.com/axios@1.1.0/dist/axios.min.js ์œผ๋กœ ๋ฐ”๋€Œ์—ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•จ. 

<script src="https://unpkg.com/axios/dist/axios.min.js"></script>

 

์ž„์‹œ๋กœ ์•„๋ž˜ ์ฃผ์†Œ๋กœ ๋ณ€๊ฒฝ

<script src="https://unpkg.com/axios@1.0.0/dist/axios.min.js"></script>

 

 

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

 

cdn unpkg TypeError: axios is not a function · Issue #5049 · axios/axios

Describe the bug A clear and concise description of what the bug is. If your problem is not a bug, please file under Support or Usage Question To Reproduce Code snippet to reproduce, ideally that w...

github.com

 

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

 

TypeError: axios.get is not a function (v1.1.0) · Issue #5038 · axios/axios

Describe the bug The new version of axios (v1.1.0) is throwing an error for axios.get: TypeError: axios.get is not a function. Note: This issue was not present in v1.0.0 To Reproduce Include axio v...

github.com

 

๋ฐ˜์‘ํ˜•