nuxt-community / axios-module

Secure and easy axios integration for Nuxt 2
https://axios.nuxtjs.org
MIT License
1.19k stars 245 forks source link

axios.$get is no function #580

Open cwz346852114 opened 2 years ago

cwz346852114 commented 2 years ago

root.vue?62fa:402

   Uncaught (in promise) TypeError: _this2.$axios.$get is not a function
at _callee$ (root.vue?62fa:402:1)
at tryCatch (runtime.js?96cf:63:1)
at Generator.invoke [as _invoke] (runtime.js?96cf:294:1)
at Generator.eval [as next] (runtime.js?96cf:119:1)
at asyncGeneratorStep (asyncToGenerator.js?1da1:3:1)
at _next (asyncToGenerator.js?1da1:25:1)
at eval (asyncToGenerator.js?1da1:32:1)
at new Promise (<anonymous>)
at eval (asyncToGenerator.js?1da1:21:1)
at VueComponent.getInfoList (root.vue?62fa:402:1)
cwz346852114 commented 2 years ago

依赖重装了几次都有问题。 打印出来 axios对象内部没有$get方法

kissu commented 2 years ago

Hi, do you mind giving more details about your setup? I do have the same issue, maybe because of Docker. Do you have a vanilla setup? Mind sharing a reproduction if the project is simple enough?