-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
AmanVarshney01/create-better-t-stack
#690Description
Which project does this relate to?
Start
Describe the bug
Starting with @tanstack/[email protected], I think server-side modules are being incorrectly bundled into the client bundle. For example, in the Clerk SDK, this error shows up in the browser console when running dev server:
Uncaught (in promise) SyntaxError: The requested module '/node_modules/cookie/dist/index.js?v=d2ee33e7' does not provide an export named 'parse' (at chunk-CEKR2FXD.mjs?v=d2ee33e7:4283:10)Understand this error
client:865 Likely related to #5717
Your Example Website or App
https://github.com/clerk/clerk-tanstack-react-start-quickstart/pull/6/files
Steps to Reproduce the Bug or Issue
- Clone the repo attached
- Switch to the
cookie-module-leakbranch - Run
npm run dev, see browser console
Expected behavior
Properly externalize server-side modules in client builds.
Screenshots or Videos
No response
Platform
- Router / Start Version: 1.134.9
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Browser Version: [e.g. 91.1]
- Bundler: Vite
- Bundler Version: [e.g. 7.0.0]
Additional context
No response
rcastrejon, kennyjwilli, DanielSintimbrean, abenhamdine and alexi-build
Metadata
Metadata
Assignees
Labels
No labels