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

Server actions map 404 (Not found) #277

Open
raptoria opened this issue Jul 1, 2024 · 1 comment
Open

Server actions map 404 (Not found) #277

raptoria opened this issue Jul 1, 2024 · 1 comment

Comments

@raptoria
Copy link

raptoria commented Jul 1, 2024

Very minor issue, just curious what could be causing this error:

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (server-actions.js.map, line 0)

Steps to reproduce the behavior:

  1. Went through the instructions to setup this example
  2. put some data in sanity
  3. pnpm dev

Expected behavior

no errors in the console

Screenshots

Screenshot 2024-07-01 at 11 54 04 AM

If applicable, add screenshots to help explain your problem.

Which versions of Sanity are you using?

Run sanity versions in the terminal and copy-paste the result here.

@sanity/cli (global) 3.47.1 (latest: 3.48.1)
@sanity/demo 2.0.0 (up to date)
@sanity/icons 2.11.8 (latest: 3.2.0)
@sanity/image-url 1.0.2 (up to date)
@sanity/preview-url-secret 1.6.17 (up to date)
@sanity/react-loader 1.10.3 (up to date)
@sanity/ui 2.4.0 (latest: 2.5.0)
@sanity/vision 3.47.1 (latest: 3.48.1)
sanity 3.47.1 (latest: 3.48.1)

What operating system are you using?
Mac OS 14.5

Which versions of Node.js / npm are you running?

❯ npm -v && node -v
10.2.4
v21.6.2
Additional context

Add any other context about the problem here.

Security issue?

none

@facuso162
Copy link

Hello, I'm having the same problem.

When I run next dev command and fetch some data with sanity using client.fetch(query) I get GET /_next/static/webpack/app/(root)/server-actions.js.map 404 in 333ms at the console.

The only way to avoid getting this problem is by commenting the fetch so I think it's something related with that.

My versions are:

  • "sanity": "3.66.1",
  • "@sanity/vision": "3.66.1",
  • "@sanity/image-url": "1.1.0",
  • "sanity-plugin-markdown": "5.0.0",
  • "next-sanity": "9.8.3-canary.1",
  • "next": "15.0.3",

NPM and Node versions:

  • npm 10.9.0
  • Node 22.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants