Hello there! I have an issue while trying to use path in my vite.config with Typescript
I did the following in a vue app ( made in JS ), and now I would like to do the same with my new React app, but I'm using Typescript
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
resolve:{
alias:{
'@' : path.resolve(__dirname, './src')
},
},
plugins: [vue()]
})
How could I do the same thing with typescript ?
It's telling me that __dirname doesnt exists