Dot*_*r A 9 google-chrome-extension reactjs axios chrome-extension-manifest-v3
我正在尝试在 React chrome 扩展模块中使用 axios,但我遇到了这个问题。
未捕获(承诺中)错误:错误:适配器“http”在构建中不可用
// background.ts
import axios from "axios"
...
axios.get<SerInyResponse>("https://realtor.p.rapidapi.com/locations/v2/auto-complete")
.then(response => {
this.Storage.setLocalStorage(response.data).then( (re) => {
resolve(response.data.Listeners)
})
})
.catch( err => {
reject(new Error(err))
})
Run Code Online (Sandbox Code Playgroud)
谁能帮我?
小智 6
写与取
const res = await fetch(url, { method: "GET", credentials: "include", headers: { Cookie: token }, });
| 归档时间: |
|
| 查看次数: |
11384 次 |
| 最近记录: |