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
How can I use axios? A get the error TypeError: adapter is not a function at dispatchRequest. #53
Comments
I found that context.rendered not work |
I have the same problem, how did you fix this? |
Hello I suppose that problem there because the process variable is empty when script runs |
@SerhiyP what process variable are you talking about? |
I don't remember what was the problem But you can try to set in webpack It might help you |
@SerhiyP thanks for your response |
Oh... `import adapter from 'axios/lib/adapters/http' axios(URL, { |
@SerhiyP tried this, getting |
I don't know why this issue is closed.... |
same error,how to fix it??? |
This answer worked for me perfectly fine and is definitely a lifesaver so Thanks for your contribution @SerhiyP . MY USE CASE |
When sending a get request, the promise is redirected with an error:
TypeError: adapter is not a function at dispatchRequest (/Users/vladimir/Programming/GR/lawsystem.test/storage/app/ssr/28d918e4632a3b48ddcaf89db6812bd7.js:1058:10) TypeError: adapter is not a function at dispatchRequest (/Users/vladimir/Programming/GR/lawsystem.test/storage/app/ssr/28d918e4632a3b48ddcaf89db6812bd7.js:1058:10) at async Promise.all (index 0) "
webpack:
Here I make get request.
app.js
app-server.js
Version
axios - 0.19.2
vue - 2.6.11
laravel-server-side-rendering = 1.3
The text was updated successfully, but these errors were encountered: