awake-maroonA
Refine12mo ago
6 replies
awake-maroon

vite-tsconfig-paths not working

I have the following code but for some reason vite-tsconfig-paths is not recognized and therefore i get an error when running the code: import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [tsconfigPaths({ root: __dirname }), react()],
build: {
rollupOptions: {
output: {
manualChunks: {
antd: ["antd"],
},
},
},
},
});
vitejs
Next Generation Frontend Tooling
Configuring Vite
Was this page helpful?