Skip to content

Conversation

@hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented Jun 23, 2025

We might need "use server" equivalent of #1050. But this is for module runner, so we don't need too much worry about module identity. For now, we can just strip this.

Waku's ssr-basic ai/rsc example uses server action request like this, which caused an error:
http://localhost:3000/RSC/F/_/@fs/home/hiroshi/code/others/waku/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/ai/rsc/dist/rsc-server.mjs?v=63d9561c/$$hoist_0_innerAction.txt

Error: Invalid encoded rscPath
    at rscPath (/home/hiroshi/code/others/waku/packages/waku/src/lib/renderers/utils.ts:24:17)
    at handler (/home/hiroshi/code/others/waku/packages/waku/src/vite-rsc/entry.rsc.tsx:45:15)
    at async file:///home/hiroshi/code/others/waku/node_modules/.pnpm/@[email protected]/node_modules/@mjackson/node-fetch-server/dist/node-fetch-server.js:23:18 {
  statusCode: 400
}

todo

  • test waku
  • test here

Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@hi-ogawa hi-ogawa marked this pull request as ready for review June 23, 2025 07:09
@hi-ogawa hi-ogawa force-pushed the 06-23-fix_correctly_resolve_server_function_created_by_client_package_during_dev branch from 6d979f7 to fdace77 Compare June 24, 2025 01:46
@hi-ogawa hi-ogawa changed the title fix: correctly resolve server function created by client package during dev fix: correctly resolve server function created by 3rd party package during dev Jun 24, 2025
@hi-ogawa hi-ogawa merged commit 1e26e06 into main Jun 24, 2025
12 checks passed
@hi-ogawa hi-ogawa deleted the 06-23-fix_correctly_resolve_server_function_created_by_client_package_during_dev branch June 24, 2025 03:02
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

Successfully merging this pull request may close these issues.

2 participants