Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Fetch regions from Medusa is undefined #2

Open
claudemircasa opened this issue Feb 2, 2025 · 0 comments
Open

Fetch regions from Medusa is undefined #2

claudemircasa opened this issue Feb 2, 2025 · 0 comments

Comments

@claudemircasa
Copy link

claudemircasa commented Feb 2, 2025

 ⨯ Error: Next.js navigation API is not allowed to be used in Middleware.
    at notFound (../../../src/client/components/not-found.ts:25:16)
    at notFound (src/middleware.ts:29:14)
    at async middleware (src/middleware.ts:96:20)
  23 | export function notFound(): never {
  24 |   // eslint-disable-next-line no-throw-literal
> 25 |   const error = new Error(DIGEST) as HTTPAccessFallbackError
     |                ^
  26 |   ;(error as HTTPAccessFallbackError).digest = DIGEST
  27 |
  28 |   throw error
 GET /_next/static/webpack/2594c740e9596a27.webpack.hot-update.json 404 in 3644ms
 ○ Compiling /_error ...
 ✓ Compiled /_error in 1364ms (4742 modules)
 GET /_next/static/webpack/2594c740e9596a27.webpack.hot-update.json 404 in 964ms
 ⚠ Fast Refresh had to perform a full reload due to a runtime error.
 GET / 404 in 0ms
Image
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant