-
Notifications
You must be signed in to change notification settings - Fork 165
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
Uncaught TypeError: axiosCookieJarSupport is not a function #264
Comments
I get this too... Anything related to webpack? |
Couldn't reproduce myself: const nano = require('nano')({
url: process.env.COUCH_URL,
requestDefaults: {
jar: true
}
})
const username = 'myusername'
const userpass = 'mypassword'
const db = nano.db.use('people')
const main = async () => {
// authenticate
await nano.auth(username, userpass)
const r = await db.list({ limit: 5 })
console.log(r)
}
main() |
The same with vite |
Hi, I have the same problem in a vue application, but using only :
Error message: Any help is really appreciated... Kind Regards |
Related: #254 In case this helps anyone:
|
This is a peculiar one. Must be something to do with whatever webpack does to Nano on its journey to client-side JavaScript. Does anyone have any suggestions as to what Nano can do to stop this happening? As @LyteFM states, the package works fine in "normal" circumstances. |
This error doesn't happen under "normal" circumstances as @glynnbird mentioned. However, if you are using a framework like Next.js, this error will appear if you don't place |
I my case, I think it relates to how dependencies are resolved by npm and when running
And after explicitly installing
The error I got looks like the dependency was simply missing in the
|
This is the issue right here Line 17 in 7211bc7
axios-cookiejar-support version 1.0.1 as no |
With current versions of NestJS,
with
and upgrading |
Uncaught TypeError: axiosCookieJarSupport is not a function
at Object.eval (nano.js?e764:19)
nano.js
const axiosCookieJarSupport = require('axios-cookiejar-support').default
axiosCookieJarSupport(axios)
What is wrong with this?
The text was updated successfully, but these errors were encountered: