Using macros with Tanstack/start
I am migrating from a custom SSR setup using @tanstack/router to @tanstack/start. I managed to get everything working except for macros. Macros are used for translations with Lingui.
I first tried this config:
export default defineConfig({ vite: { plugins: [ react({ babel: { plugins: ["macros"] }, }), lingui(), ], }, });It triggered an error, I figured out that the React plugin (@vitejs/plugin-react) was defined twice (once by me, once internaly) Then I tried this config:
export default defineConfig({ react: { babel: { plugins: ["macros"] } }, vite: {}, });But then I encountered this error:
Named export 'createMacro' not found.
Not sur if it's related to vixi or tanstack/start.0 Replies