You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Failed to fetch
fetchRSC
node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@parcel/rsc/src/client.tsx:58:19
55 |
56 |export async functionfetchRSC<T>(url: string | URL | Request, options?:
57 | const temporaryReferences = createTemporaryReferenceSet();
> 58 | const response = fetch(url, {
>| ^
59 | ...options,
60 | headers: {
61 | Accept: 'text/x-component',
View compiled
async callServer
src/client.tsx:10:25
7 | // Setup a callback to perform server actions.
8 | // This sends a POST request to the server, and updates the page with t
9 | async callServer(id, args) {
> 10 | t} = await fetchRSC<{root: ReactNode, result: any}>(location.pathname, {>| ^ 11 | method: 'POST', 12 | headers: { 13 |'rsc-action-id': id,View compiled
server side
@parcel/reporter-dev-server: Invalid server action: brni1#action
Error: Invalid server action: brni1#action
at resolveServerReference
(/Users/himself65/Code/my-rsc-app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-server-dom-parcel/cjs/react-server-dom-parcel-server.edge.development.js:20:33)
at exports.loadServerAction
(/Users/himself65/Code/my-rsc-app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-server-dom-parcel/cjs/react-server-dom-parcel-server.edge.development.js:3873:23)
at callAction
(/Users/himself65/Code/my-rsc-app/node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@parcel/rsc/src/server.tsx:114:39)
at callAction
(/Users/himself65/Code/my-rsc-app/node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@parcel/rsc/src/node.tsx:71:23)
at <anonymous> (/Users/himself65/Code/my-rsc-app/src/server.tsx:17:33)
at Layer.handle [as handle_request]
(/Users/himself65/Code/my-rsc-app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/layer.js:95:5)
at next
(/Users/himself65/Code/my-rsc-app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/route.js:149:13)
at Route.dispatch
The text was updated successfully, but these errors were encountered:
I just follow https://parceljs.org/recipes/rsc/#quick-start
server side
The text was updated successfully, but these errors were encountered: