vite + react router v7 displaying raw index.js
Unanswered
Pacific cod posted this in #help-forum
Pacific codOP
hi my app is showing raw index.js file
here is the link https://demo-xi-hazel-24.vercel.app/
here is the vite.config.ts
here is the link https://demo-xi-hazel-24.vercel.app/
here is the vite.config.ts
import { reactRouter } from "@react-router/dev/vite";
import autoprefixer from "autoprefixer";
import tailwindcss from "tailwindcss";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import vercel from "vite-plugin-vercel";
export default defineConfig({
css: {
postcss: {
plugins: [tailwindcss, autoprefixer],
},
},
plugins: [reactRouter(), tsconfigPaths(), vercel()],
resolve: {
extensions: [".js", ".ts", ".jsx", ".tsx", ".json"],
},
});1 Reply
Pekingese
this is the nextjs discord. you might be able to find some help for this issue in the Remix discord from the team who built React Router https://discord.com/invite/xwx7mMzVkA