Skip to content

Plural is broken when used with tanstack/devtools or sentryVitePlugin #2350

@SohelIslamImran

Description

@SohelIslamImran

Description

I'm having this issue when using the Plural from `@lingui/react/macro"

TestsQuestionsPage.tsx:82 invalid syntax at line 1 col 49:

1  {0, plural, one {# question} other {# questions} data-tsd-source {/Users/sohelislamimran/Development/kuno-frontend/packages/ai-tests/src/pages/web/TestsQuestionsPage.tsx:82:15}}
                                                   ^ 

Message: {0, plural, one {# question} other {# questions} data-tsd-source {/Users/sohelislamimran/Development/kuno-frontend/packages/ai-tests/src/pages/web/TestsQuestionsPage.tsx:82:15}}
Image

Here is my Vite config

Image

Verifications

  • I've checked the docs and this isn't covered there.
  • I've searched existing issues on GitHub.

Reproduction Steps

https://codesandbox.io/p/devbox/holy-meadow-xtmrsc

Expected Behavior

It should show 1 question or 5 questions in texts

Macro Support

Babel with babel-macro-plugin

Lingui Version

5.5.1

Babel Version

7.28.4

Framework

Vite

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions