FelixIncerta

Results 5 comments of FelixIncerta

This does not work for me in production. Having this issue but i think it is related to this plugin https://github.com/vitejs/vite/issues/3876 in dev it works for production not due to...

This is the exact error when i do `tsc && vite build` Only for components where React is not imported ![image](https://user-images.githubusercontent.com/85738284/123436622-1871f480-d5cf-11eb-8149-bb719af669d0.png) ``` import reactRefresh from '@vitejs/plugin-react-refresh'; import { defineConfig }...

@aleclarson Thank you here is my fork https://github.com/FelixIncerta/vite-react-jsx I have this error on vite build ![image](https://user-images.githubusercontent.com/85738284/123652164-591a7980-d82c-11eb-98e0-2d0ddebfb235.png) the error suggests adding react/jsx-runtime to build.rollupOptions.external but then i get the other error...

after adding this ` 'react/jsx-runtime': dirNodeModules+ '/react/cjs/react-jsx-runtime.production.min.js',` in resolve.alias it seems to be working..