How to import the Axios library #4736
Unanswered
guntercngmail
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
Using WebView2, I need to import a javascript with the following functionality.
const axios = require('axios');
or
const axios = await import('https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js');
i user the next line
const res = await axios.post("https://URL/createTask", payload);
Error
Error:TypeError: axios.post is not a function
thanks..
Beta Was this translation helpful? Give feedback.
All reactions