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

Honeybadger and ClerkJs are not compatible in a NextJs application #1255

Open
subzero10 opened this issue Nov 24, 2023 · 0 comments
Open

Honeybadger and ClerkJs are not compatible in a NextJs application #1255

subzero10 opened this issue Nov 24, 2023 · 0 comments
Labels
bug nextjs @honeybadger-io/nextjs

Comments

@subzero10
Copy link
Member

What are the steps to reproduce this issue?

  1. create a nextjs app using the app router and the src folder
  2. configure honeybadger using the nextjs documentation guide
  3. configure env variables on Vercel

What happens?

Locally, with npm run dev all work normally.
After deploying to Vercel, I am getting an error.

What were you expecting to happen?

To not throw an error.

Any logs, error output, etc?

Error: Clerk: auth() was called but Clerk can't detect usage of authMiddleware(). Please ensure the following:
- authMiddleware() is used in your Next.js Middleware.
- Your Middleware matcher is configured to match this route or page.
- If you are using the src directory, make sure the Middleware file is inside of it.

For more details, see https://clerk.com/docs/quickstarts/get-started-with-nextjs.

    at /var/task/.next/server/chunks/5961.js:12:47984
    at /var/task/.next/server/chunks/5961.js:12:45968
    at rx (/var/task/.next/server/chunks/5961.js:14:87)
    at d (/var/task/.next/server/app/page.js:1:4354)
    at /var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:8530
    at /var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:8659
    at async rx (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:8353)
    at async /var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:7389
    at async Promise.all (index 0)
    at async rx (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:7160)

What versions are you using?

Package Name: @honeybadger-io/nextjs
Package Version: 5.8.4

@subzero10 subzero10 added bug nextjs @honeybadger-io/nextjs labels Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug nextjs @honeybadger-io/nextjs
Projects
None yet
Development

No branches or pull requests

1 participant