Module not found: Can't resolve '@ory/nextjs/app' when using file:<path>
Answered
North Pacific hake posted this in #help-forum
North Pacific hakeOP
Hi.
I am getting.
When running my app.
my entry in
The package is added into
i'm also using
I am getting.
Module not found: Can't resolve '@ory/nextjs/app'
2 | import {ModeToggle} from "@/components/mode-toggle"
3 | import {SessionProvider} from "@/client/session-provider"
> 4 | import {getServerSession} from "@ory/nextjs/app"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5 | import {Logout} from "@/components/logout"
When running my app.
my entry in
package.json
is "@ory/nextjs": "file:../elements/packages/nextjs/dist",
under dependencies
The package is added into
node_modules
i'm also using
turbopack
1 Reply
North Pacific hakeOP
seems like it's a problem with
turbopack
๐Answer