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 SPA example does not run #337

Open
3 of 5 tasks
snoop244 opened this issue Jan 22, 2025 · 0 comments
Open
3 of 5 tasks

Next.js SPA example does not run #337

snoop244 opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@snoop244
Copy link

Preflight checklist

Ory Network Project

No response

Describe the bug

The Readme on the project seems out of date. For example, it says at the project root to run npm run initialize, which is not a thing. In any event, if you follow the example readme, the project does not run as-is. It gives me this error:

{
  "message": "Network error - this could be related to CORS or an incorrect URL set on the `NEXT_PUBLIC_ORY_SDK_URL` environment variable. Please check out the Ory documentation for more information: https://www.ory.sh/docs/getting-started/local-development"
}

The referenced document in that error message is also inconsistent and does not provide a solution.

The possibility that it is a CORS error seems low because I cloned the whole elements repo, did a clean:build from the root and then tried the examples. I believe I got one or two of the examples to work, but the only one that seems to demonstrate custom styling is the nextjs-spa, so I am keen to get this working.

Reproducing the bug

Follow the Readme in the nextjs-spa example.

Relevant log output

Relevant configuration

Version

0.5.0

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Ory Network

Additional Context

No response

@snoop244 snoop244 added the bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant