Skip to content

Commit

Permalink
chore: Add flags error for older Next.js versions to troubleshooting (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmytton authored Feb 13, 2025
1 parent 7e2f0ca commit 267822f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/content/docs/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,13 @@ const decision = await aj.protect(req, { email });
// You can now access the body again later
```

### Error: Cannot read properties of undefined (reading 'flags')

If you see this error then you are probably running an older version of Next.js.
Arcjet supports the current and previous major versions of Next.js [as indicated
in the SDK reference](/reference/nextjs#requirements). Upgrade your Next.js
version to the latest version to fix this error.

## Get help

We provide [technical support](/support) for all Arcjet users so if you need
Expand Down

0 comments on commit 267822f

Please # to comment.