Skip to content

Problems with parsing TSX #423

@cernymatej

Description

@cernymatej

Reporting a bug?

As reported in #402, there are some problems with parsing the TSX template and I believe they were not fixed by #414.

Specifically, the following error appears in the console when trying to run the dev server: Pre-transform error: '>' expected.

IMPORTANT: this doesn't show up in the reproduction on Stackblitz, because it is masked by #420, however, when you download it and run it locally, you can see the error. (at least on my machine - check system info)

Expected behavior

No error should appear and the app should build successfully

Reproduction

https://stackblitz.com/edit/github-ffpcjt-wvpad2?file=package.json

Issue Package

vite-plugin-vue-i18n

System Info

System:
    OS: macOS 15.1
    CPU: (12) arm64 Apple M2 Max
    Memory: 5.24 GB / 96.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.1.0 - ~/.nvm/versions/node/v20.9.0/bin/npm
    pnpm: 9.9.0 - ~/Library/pnpm/pnpm
    bun: 1.0.25 - ~/.bun/bin/bun
  Browsers:
    Chrome: 130.0.6723.116
    Safari: 18.1

Screenshot

image

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the README
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions