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:
Then I tried this config:
But then I encountered this error:
Not sur if it's related to vixi or tanstack/start.
I first tried this config:
export default defineConfig({It triggered an error, I figured out that the React plugin (@vitejs/plugin-react) was defined twice (once by me, once internaly)
vite: {
plugins: [
react({
babel: { plugins: ["macros"] },
}),
lingui(),
],
},
});
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.