Skip to content

fix(server): import request and cookie helpers from @tanstack/start-server-core/request-response - #39

Merged
nandan-bhat merged 2 commits into
auth0:mainfrom
xeofd:fix/start-server-core-imports
Sep 15, 2026
Merged

nandan-bhat merged 2 commits into
auth0:mainfrom
xeofd:fix/start-server-core-imports

Conversation

@xeofd

@xeofd xeofd commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

By submitting a PR to this repository, you agree to the terms within the Auth0 Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.

Description

Raised an issue here that explains what the problem is, simple PR updating imports for tanstack start methods performing cookie actions or get requests.

References

GitHub Issue/PR number addressed or fixed
Issue number 38

Testing

Unit tests have been updated so mocked imports point to the same place as implementation. No new test coverage added.

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not the default branch

nandan-bhat
nandan-bhat previously approved these changes Sep 15, 2026
@nandan-bhat nandan-bhat changed the title fix(server): import request and cookie helpers from @tanstack/start-s… fix(server): import request and cookie helpers from @tanstack/start-server-core/request-response Sep 15, 2026
Lead with the actual failure the subpath avoids: the package root (and the @tanstack/react-start/server barrel that re-exports it) pulls in createStartHandler, whose per-app virtual imports #tanstack-router-entry / #tanstack-start-entry can't be resolved when a downstream app pre-bundles this SDK as a dependency (e.g. Vite's dep optimizer), breaking the consumer's dev/build. Keep the SSR renderer / hydration concern as the secondary reason and align the handlers.ts note with cookie-handler.ts.
@nandan-bhat

Copy link
Copy Markdown
Contributor

Hi @xeofd ,

Thanks for the contribution !. The changes look good to me.

I have added a small commit with some docs cleanup: 17f378f. It updates the code comments to explain why we import from the /request-response subpath instead of the package root (as there are existing comments).

I'll get it reviewed by another team member and then merge it.

@xeofd

xeofd commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

Great thanks!

Will note the comments if I raise anything else in future

@nandan-bhat nandan-bhat self-assigned this Sep 15, 2026
@nandan-bhat
nandan-bhat merged commit 869fc43 into auth0:main Sep 15, 2026
5 checks passed
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.

3 participants