Alex Yang
Alex Yang
@Kamahl19 Hi, would you try to use https://github.com/huozhi/rollup-plugin-swc-preserve-directives to see if the error disappear
> I get even more errors. Maybe I misunderstood. Should I just add it to the vite plugin? Could you please share you vite config?
I just tried, and there's only one warning that won't cause building interrupt. ``` main.js → output... (!) Module level directives cause errors when bundled, "use client" in "node_modules/.pnpm/[email protected][email protected]/node_modules/jotai/esm/react.mjs" was...
Anyway, I'm working on a new implementation that won't cause this error
Error is still here https://stackblitz.com/edit/vitejs-vite-v2qh9v ```shell ~/projects/vitejs-vite-v2qh9v 2s ❯ npm run build > [email protected] build > tsc && vite build vite v5.1.4 building for production... node_modules/jotai/esm/react.mjs (1:0) Module level directives...
Related https://github.com/vitejs/vite/issues/15012#issuecomment-1825035992
oh yeah, a warning
> Do you have a reproduction link? did'nt see bunchee is setup in that repo im still working on this
but you can overwrite the package.json and see it
see https://github.com/run-llama/LlamaIndexTS/pull/434