Skip to content
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

Next.js 15 and turbopack are having trouble resolving modules from @edgedb/auth-nextjs #1128

Open
scotttrinh opened this issue Nov 1, 2024 · 0 comments
Labels

Comments

@scotttrinh
Copy link
Collaborator

Getting the following error messages:

 ⨯ ./apps/next-app/edgedb.client.ts:1:0
Module not found: Can't resolve '@edgedb/auth-nextjs/app/client'
> 1 | import createNextAppClientAuth from "@edgedb/auth-nextjs/app/client";
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2 |
  3 | import config from "./auth.config";
  4 |

https://nextjs.org/docs/messages/module-not-found



./apps/next-app/edgedb.server.ts:2:0
Module not found: Can't resolve '@edgedb/auth-nextjs/app'
  1 | import { createClient } from "edgedb";
> 2 | import createAuth from "@edgedb/auth-nextjs/app";
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  3 | import config from "./auth.config";
  4 |
  5 | export const client = createClient();

https://nextjs.org/docs/messages/module-not-found



./apps/next-app/effects/auth.ts:3:0
Module not found: Can't resolve '@edgedb/auth-core'
  1 | import { Effect, Data } from "effect";
  2 | import type { Client } from "edgedb";
> 3 | import { createVerifierChallengePair } from "@edgedb/auth-core";
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  4 |
  5 | import { auth } from "@/edgedb.server";
  6 |

https://nextjs.org/docs/messages/module-not-found


 ⨯ ./apps/next-app/edgedb.client.ts:1:0
Module not found: Can't resolve '@edgedb/auth-nextjs/app/client'
> 1 | import createNextAppClientAuth from "@edgedb/auth-nextjs/app/client";
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2 |
  3 | import config from "./auth.config";
  4 |

https://nextjs.org/docs/messages/module-not-found



./apps/next-app/edgedb.server.ts:2:0
Module not found: Can't resolve '@edgedb/auth-nextjs/app'
  1 | import { createClient } from "edgedb";
> 2 | import createAuth from "@edgedb/auth-nextjs/app";
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  3 | import config from "./auth.config";
  4 |
  5 | export const client = createClient();

https://nextjs.org/docs/messages/module-not-found



./apps/next-app/effects/auth.ts:3:0
Module not found: Can't resolve '@edgedb/auth-core'
  1 | import { Effect, Data } from "effect";
  2 | import type { Client } from "edgedb";
> 3 | import { createVerifierChallengePair } from "@edgedb/auth-core";
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  4 |
  5 | import { auth } from "@/edgedb.server";
  6 |

https://nextjs.org/docs/messages/module-not-found

Also, Next.js 15 changed all of the dynamic route functions to async, so we'll need to do some dynamic checking of the functions to see if they are async or not before calling cookies(), for instance.

@scotttrinh scotttrinh added the bug label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant