Open SnirShechter opened 1 year ago
For anyone else stuck here, I've added a fix myself via patch-package:
npm install --save-dev patch-package
patches/vite-plugin-eslint+1.8.1.dev.patch
with this content:
diff --git a/node_modules/vite-plugin-eslint/package.json b/node_modules/vite-plugin-eslint/package.json
index afbc41c..5f6d8f7 100644
--- a/node_modules/vite-plugin-eslint/package.json
+++ b/node_modules/vite-plugin-eslint/package.json
@@ -9,6 +9,7 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
+ "types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
3. Add a postinstall script in your `package.json`:
"postinstall": "patch-package",
4. `npm install`
It happens when using recommended in TypeScript 5 "moduleResolution": "Bundler"
in tsconfig.json
What does it take to get this fixed? It seems like an easy thing to fix...
I don't really want to use a patch-package mechanism, since I'm setting up a totally new virgin project. It feels dirty.