Skip to content

Issue with react compiler / babel #10

@AndreiTS

Description

@AndreiTS

I just updated to Vite 8 and @vitejs/plugin-react 6, and I'm getting an error when trying to run react compiler.

The current documentation suggests the following setup:

Image

However, this configuration produces the following error:

oxlint


  × typescript(TS2740): Type '{ presets: RolldownBabelPreset[]; }' is missing the following properties from type 'PluginOptions': assumptions, auxiliaryCommentAfter, auxiliaryCommentBefore, comments, and 9 more.
    ╭─[vite.config.ts:31:15]
 30 │         react(),
 31 │         babel({ presets: [reactCompilerPreset()] }),
    ·               ────────────────────────────────────
 32 │         sentryVitePlugin({
    ╰────

Found 0 warnings and 1 error.

Originally posted by @AndreiTS in #9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions