Running yarn build I see
Module level directives cause errors when bundled, "use client" in "src/Counter.tsx" was ignored.

I thought this would have been solved as of @vitejs/plugin-react v4. And just to make sure I was actually using the correct version I ran yarn why

The fix is mentioned under "Other notable changes" in the release notes https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-react%404.0.0
So not sure why I'm still seeing it
Running

yarn buildI seeModule level directives cause errors when bundled, "use client" in "src/Counter.tsx" was ignored.I thought this would have been solved as of

@vitejs/plugin-reactv4. And just to make sure I was actually using the correct version I ranyarn whyThe fix is mentioned under "Other notable changes" in the release notes https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-react%404.0.0
So not sure why I'm still seeing it