Repository navigation
Closed
Labels
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/tanstackstart-react
SDK Version
10.35.0 (or higher)
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
Following the docs here to setup a new project with the latest version of packages. https://docs.sentry.io/platforms/javascript/guides/tanstackstart-react/features/sentryTanstackStart/
Expected Result
Build should pass
Actual Result
Build fails with:
error during build:
[commonjs--resolver] node_modules/fsevents/fsevents.node (1:0): Unexpected character '�' (Note that you need plugins to import files that are not JavaScript)
file: /Users/garand/Projects/my-project/node_modules/fsevents/fsevents.node:1:0 (/Users/garand/Projects/my-project/node_modules/chokidar/index.js)
1: ����@<�
��*...
^
4*
h���/System/Library/Frameworks/CoreFoundation.framework/Versions...
3: ���H��1�H���L���L���H�����L�E�L��H��1�����uH�E�H�[A^A_]��}f.�UH��AWAVSPI��H��I��H�H...
at getRollupError (file:///Users/garand/Projects/my-project/node_modules/rollup/dist/es/shared/parseAst.js:402:41)
at ParseError.initialise (file:///Users/garand/Projects/my-project/node_modules/rollup/dist/es/shared/node-entry.js:14462:28)
at convertNode (file:///Users/garand/Projects/my-project/node_modules/rollup/dist/es/shared/node-entry.js:16434:10)
at convertProgram (file:///Users/garand/Projects/my-project/node_modules/rollup/dist/es/shared/node-entry.js:15674:12)
at Module.setSource (file:///Users/garand/Projects/my-project/node_modules/rollup/dist/es/shared/node-entry.js:17389:24)
at async ModuleLoader.addModuleSource (file:///Users/garand/Projects/my-project/node_modules/rollup/dist/es/shared/node-entry.js:21471:13)
Additional Context
I installed each version back to 10.34.0 and that was the newest one that worked. Seems like one of the main changes is adding the Vite plugin in 10.35.0, maybe related?
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Reacted by Anthony Garand, Dominik "Pipo" Alexander, Mohamed Yahye El Joud, Daniel Stocks and Jasper Fülle
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsNo status
Activity
linear commentedon Feb 3, 2026
JS-1625
andreiborza commentedon Feb 3, 2026
Hi @garand, thanks for writing in.
It looks like the vite plugin is making it into your application code. Ideally your build system should be able to figure out that this dependency is only used in configuration files that themselves aren't making it into the build.
We've had a similar issue before in #18215, there's not much we can do here beyond advising you to have a look at your build system and figure out why the plugin ends up in your application code.
Let me know if something's unclear.
51 remaining items
feat(tanstackstart-react)!: Export Vite plugin from @sentry/tanstacks…
nicohrubec commentedon Feb 23, 2026
@garand Update: We moved the vite plugin to a subpath export, will go out with
10.40.0. This should resolve the issue, but let me know if you still run into anythinggarand commentedon Feb 23, 2026
@nicohrubec Thanks for the update, looking forward to checking it out.
nicohrubec commentedon Feb 24, 2026
Release is out
nicohrubec commentedon Feb 25, 2026
I'll close this for now, but feel free to reopen if you are still running into this!
fix(www): fix "Unexpected character" in build