Build failing because of parsing error
Hey guys! I am integrating Lingui with TanStack Start (React + Vite), and I am running into a build error because, for some reason, the Tanstack Start plugin tries to parse the
.po
translation files, which I am dynamically importing.
My Vite config setup:
The error when running a build:
I tried excluding the translation files from Babel, but it didn't help.
Trying to figure out whether this is a TanStack start issue or not. Anyone who can help?14 Replies
eager-peach•4w ago
can you please provide a complete example?
foreign-sapphireOP•4w ago
by complete example are you referring to a sandbox or specific files?
eager-peach•4w ago
a sandbox
seems like start tries to parse that file but should not
so a reproducer project would be helpful
foreign-sapphireOP•4w ago
alright will provide a sandbox (at the latest Tuesday)
deep-jade•4w ago
If this can help, I have fresly added Lingui to my project
deep-jade•4w ago









foreign-sapphireOP•4w ago
@ティボ Do you have the same issue?
deep-jade•4w ago
No issue on my side, it compile.
foreign-sapphireOP•4w ago
Alright, had a closer look at the screenshots, that seems like an outdated setup, the Lingui team is working on a new setup recommendation: https://github.com/lingui/js-lingui/pull/2267
GitHub
fix(examples): devinxi Tanstack Start example by depsimon · Pull R...
Description
This PR updates the tanstack-start example to use the latest version which relies on vite instead of vinxi. It also updates to tailwind 4
Types of changes
Bugfix (non-breaking change ...
deep-jade•4w ago
My version is indeed based on the old example which I manually migrated following the migration doc from tanstack.
foreign-sapphireOP•2w ago
@Manuel Schiller Sorry for the delay, but here is the repo I promised: https://github.com/jsefiani/start-basic, let me know if you have any questions!
eager-peach•2w ago
so it tries to parse the .po file?
interesting
can you please create a github issue for this and link the reproducer for it?
foreign-sapphireOP•7d ago
Yeah indeed
Alright will do 👍
foreign-sapphireOP•3d ago
Here you go: https://github.com/TanStack/router/issues/5017
GitHub
TanStack Start plugin attempts to compile po files and fails · Iss...
Which project does this relate to? Start Describe the bug The TanStack start plugin attempts to compile PO files and fails; ideally, the plugin should ignore them. Your Example Website or App https...