#Error running npx convex deploy
12 messages · Page 1 of 1 (latest)
Hi @unique tree. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Based on the information provided in the knowledge sources, it appears that you're encountering an issue related to version mismatches between @auth/core and @convex-dev/auth. This is a known issue that has been reported by other users.
The most relevant solution to your problem can be found in this Discord thread: auth/core and convex-dev/auth seem to have diverged in typing
According to the thread, there's a workaround available:
- Install a specific version of
@auth/core:
npm install @auth/[email protected]
This should resolve the issue you're experiencing with the missing customFetch export.
It's worth noting that the Convex team is aware of this issue and is working on updating Convex Auth to have @auth/core as a peer dependency and use a more recent version.
If you continue to experience issues after trying this workaround, you may want to check if you have the latest version of @convex-dev/auth installed, or reach out to the Convex support team for further assistance.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@unique tree Kapa.ai is still learning and improving, please let me know how I did by reacting below.
@neat pagoda still get error "No matching export in "node_modules/@auth/core/index.js" for import "customFetch"
node_modules/@convex-dev/auth/dist/server/oauth/lib/utils/customFetch.js:5:9:
5 │ export { customFetch } from "@auth/core";"
Let me check the knowledge base for you again. One moment! :books:
I apologize that the previous solution didn't resolve your issue. It seems that the problem persists even after installing the specific version of @auth/core. Let's try a different approach based on the information available in our knowledge sources.
From the Discord support thread about NextAuth Adapter, we can see that there might be version compatibility issues between different packages. Here are a few steps you can try:
-
First, make sure you're using the correct package name. It should be
@convex-dev/auth, not@convex/auth. -
Try updating
@convex-dev/authto the latest version:npm install @convex-dev/auth@latest -
If that doesn't work, you can try running the latest version of the auth setup script:
npx @convex-dev/auth@latest
This was suggested by a Trusted Support Staff member in the Discord thread.
If these steps don't resolve the issue, it's possible that there's a deeper compatibility problem between the versions of @auth/core and @convex-dev/auth that you're using. In this case, you might need to:
- Delete your
node_modulesfolder - Clear your npm cache:
npm cache clean --force - Reinstall all your packages:
npm install
If the problem persists after trying these steps, I recommend opening a new support thread in the Convex Discord channel or reaching out to the Convex support team directly. They might need to investigate this specific error further, as it seems to be a recurring issue that the standard solutions aren't fully addressing.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@unique tree Kapa.ai is still learning and improving, please let me know how I did by reacting below.
@neat pagoda still get error "✘ [ERROR] No matching export in "../../node_modules/@auth/core/index.js" for import "customFetch"
node_modules/@convex-dev/auth/dist/server/oauth/lib/utils/customFetch.js:3:9:
3 │ import { customFetch } from "@auth/core";
╵ ~~~~~~~~~~~
✘ [ERROR] No matching export in "../../node_modules/@auth/core/index.js" for import "customFetch"
node_modules/@convex-dev/auth/dist/server/oauth/lib/utils/customFetch.js:5:9:
5 │ export { customFetch } from "@auth/core";"
Let me check the knowledge base for you again. One moment! :books:
I apologize that the previous solutions haven't resolved your issue. This persistent error suggests a deeper compatibility problem between @auth/core and @convex-dev/auth. Based on the information from our knowledge sources, let's try a more targeted approach.
From the Discord support thread about Convex Auth template error, we can see that there have been issues with specific versions of these packages. Here's what you can try:
-
First, check your current versions:
npm list @auth/core @convex-dev/auth -
If your
@auth/coreversion is higher than 0.36.0, downgrade it to 0.36.0:npm install @auth/[email protected] -
Make sure you have the latest compatible version of
@convex-dev/auth:npm install @convex-dev/auth@latest -
After installing these specific versions, delete your
node_modulesfolder and reinstall all dependencies:rm -rf node_modules npm install -
If the error persists, there might be an issue with how the packages are resolving. Try adding this to your
package.json:"overrides": { "@auth/core": "0.36.0" }Then run
npm installagain.
If none of these steps resolve the issue, it's possible that there's a bug in the current release of Convex Auth. In this case, the best course of action would be to:
- Open a new issue on the Convex Auth GitHub repository.
- Provide details about your setup, including your
package.json, the exact error message, and the steps you've taken to try to resolve it.