-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: NuxtAxiosInstance no longer exported #555
Comments
Also affects our projects with |
I have the same problem |
I have the same problem in Same version as the quote below.
I got the following errors by vscode.
or
Could anyone Help me? |
Ping @pi0 (sorry I know you've been very helpful on issues in the past, thought I'd bring this to your attention in case it's a quick fix or you may ping someone who is best placed to take a look?) |
The solution is to use
|
The Now it is here: It should be |
I'm not 100% sure why the Remember that using a single import or export keyword, turns a file into a module. Maybe a TypeScript expert can help more. |
@amirhoseinsalimi How cool. Thanks for your time investigating and the solution. It's certainly resolved the issue for me so will close the issue and the detail you've given will stick with me for any type imports in future too. You rock. |
Thank YOU for asking this so I could think more about types :D. I'll update this thread once I get more information about this behavior. |
Issue
The interface is no longer exported from type definitions and also results in an issue with the
vuex.d.ts
file:https://github.com/nuxt-community/axios-module/blob/main/types/vuex.d.ts
as this will try to import it as well.Solution:
NuxtAxiosInstance should be exported here:
https://github.com/nuxt-community/axios-module/blob/main/types/index.d.ts
Related and possibly related:
get
The text was updated successfully, but these errors were encountered: