aleclarson / vite-tsconfig-paths

Support for TypeScript's path mapping in Vite
MIT License
1.28k stars 45 forks source link

vite.defineConfig is not a function #32

Closed jzyzxx closed 2 years ago

jzyzxx commented 3 years ago

TypeError: vite.defineConfig is not a function viite:vite/2.4.4 win32-x64 node-v14.15.4 vue: "^3.0.4" node:v14.15.4 npm:6.14.10

import { defineConfig } from 'vite'
import tsconfigPaths from 'vite-tsconfig-paths'

export default defineConfig({
  plugins: [tsconfigPaths()],
})
aleclarson commented 2 years ago

It works without tsconfigPaths import?