You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can @nuxtjs/axios export CancelToken too?
So I gan use only import { CancelToken } from '@nuxtjs/axios'; which I already have in dependencies
instad of import { CancelToken } from 'axios'; which need to be additionally added to dependencies
This feature request is available on Nuxt community (#c265)
The text was updated successfully, but these errors were encountered:
Hi. I'm sorry but it's not possible to directly import it from the module package. Axios will be automatically installed when you install axios module (@nuxt/axios) but if your IDE is complaining about this, you can always also directly add axios dependency as well. I'm closing this issue as it is more a feature request but #292 can also provide an easier shortcut when you don't need any import :)
What problem does this feature solve?
Can
@nuxtjs/axios
exportCancelToken
too?So I gan use only
import { CancelToken } from '@nuxtjs/axios';
which I already have in dependenciesinstad of
import { CancelToken } from 'axios';
which need to be additionally added to dependenciesThe text was updated successfully, but these errors were encountered: