Closed soetz closed 3 years ago
Same Problem here. Removing the plugin from the vite.config.js will make the build work again.
I try to exclude the index.html
in option and it work.
I have this same issue using Vue3 + Typescript with the parser @typescript-eslint/parser
.
If I add the rule 'vue/comment-directive': 'off',
that error goes away but a most confusing one shows up:
[vite:eslint] No files matching 'vite/preload-helper' were found.
file: vite/preload-helper
error during build:
Error: No files matching 'vite/preload-helper' were found.
at FileEnumerator.iterateFiles (C:\Users\User\Documents\Proyectos\justos\pas\node_modules\eslint\lib\cli-engine\file-enumerator.js:317:27)
at iterateFiles.next (<anonymous>)
at CLIEngine.executeOnFiles (C:\Users\User\Documents\Proyectos\justos\pas\node_modules\eslint\lib\cli-engine\cli-engine.js:765:48)
at ESLint.lintFiles (C:\Users\User\Documents\Proyectos\justos\pas\node_modules\eslint\lib\eslint\eslint.js:530:23)
at Object.transform (C:\Users\User\Documents\Proyectos\justos\pas\node_modules\vite-plugin-eslint\dist\index.js:53:35)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ModuleLoader.addModuleSource (C:\Users\User\Documents\Proyectos\justos\pas\node_modules\rollup\dist\shared\rollup.js:19013:30)
at async ModuleLoader.fetchModule (C:\Users\User\Documents\Proyectos\justos\pas\node_modules\rollup\dist\shared\rollup.js:19069:9)
at async Promise.all (index 0)
at async ModuleLoader.fetchStaticDependencies (C:\Users\User\Documents\Proyectos\justos\pas\node_modules\rollup\dist\shared\rollup.js:19095:34)
I tried even this configuration in vite.config.ts
:
eslintPlugin({
exclude: ['node_modules', 'index.html', 'vite/preload-helper']
}),
But can't make it to work...
Fix it, now include
prop default to src/**/*
Hey. I wonder if I’m doing something wrong, but I don’t seem to be able to build because of this plugin, even though if I run
npm run lint
no eslint problem is reported.I’ve tried it with both the
vue
and thevue-ts
default vite templates. My configuration for JS Vue looks like this :The error I got is the following :
If I add
**/*.html
to the.eslintignore
file, it becomes this one :Thanks anyway!