Skip to content

[TanStack Start] Broken build with 10.35.0 (Unexpected character '�') #19142

@garand

Description

@garand

Is there an existing issue for this?

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions