We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
2.2.0
Start a new vite-based remix app
npx create-remix@nightly --template remix-run/remix/templates/unstable-vite
Add a route with a .jsx extension and navigate to it
.jsx
See your browser blow up
Router renders
Route does not render unless you manually install @vittejs/plugin-react and update the config to be
import { unstable_vitePlugin as remix } from "@remix-run/dev"; import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; export default defineConfig({ plugins: [remix(), react()], });
I'm pretty confident we don't want to users to manually have to import the react plugin. At a minimum, js/jsx should definitely work out of the box
react
The text was updated successfully, but these errors were encountered:
I'm attempting to fix this issue in #7888 I think the workaround could work directly from local vite config by:
import { unstable_vitePlugin as remix } from "@remix-run/dev"; import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({ plugins: [remix(), tsconfigPaths()], // // WORKAROUND // esbuild: { jsx: "automatic" } });
Sorry, something went wrong.
Fixed by #7888.
No branches or pull requests
What version of Remix are you using?
2.2.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Start a new vite-based remix app
Add a route with a
.jsx
extension and navigate to itSee your browser blow up
Expected Behavior
Router renders
Actual Behavior
Route does not render unless you manually install @vittejs/plugin-react and update the config to be
I'm pretty confident we don't want to users to manually have to import the
react
plugin. At a minimum, js/jsx should definitely work out of the boxThe text was updated successfully, but these errors were encountered: