You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a clash when trying to use the vite-plugin-eslint package with unplugin-icons in a svelte-vite-typescript project. I have created a minimal reproducible example with the steps taken to create the issue.
But long story short after configuring eslint to be compatible with svelte and adding the vite-plugin-eslint to the Vite config the project now fails to import an icon from unplugin-icons with the error:
eslint-unplugin-mre on main [!?] via v16.15.0 took 1m1s 130
❯ npm run dev
> eslint-unplugin-mre@0.0.0 dev
> vite
vite v2.9.9 dev server running at:
> Local: http://localhost:3000/
> Network: use `--host` to expose
ready in 265ms.
No files matching '~icons/carbon/accessibility.svelte' were found.
10:04:37 PM [vite] Internal server error: No files matching '~icons/carbon/accessibility.svelte' were found.
Plugin: vite-plugin-eslint
File: ~icons/carbon/accessibility.svelte
at FileEnumerator.iterateFiles (/home/thomassdk/code/eslint-unplugin-mre/node_modules/eslint/lib/cli-engine/file-enumerator.js:318:27)
at iterateFiles.next (<anonymous>)
at CLIEngine.executeOnFiles (/home/thomassdk/code/eslint-unplugin-mre/node_modules/eslint/lib/cli-engine/cli-engine.js:788:48)
at ESLint.lintFiles (/home/thomassdk/code/eslint-unplugin-mre/node_modules/eslint/lib/eslint/eslint.js:550:23)
at TransformContext.transform (file:///home/thomassdk/code/eslint-unplugin-mre/node_modules/vite-plugin-eslint/dist/index.mjs:97:35)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.transform (/home/thomassdk/code/eslint-unplugin-mre/node_modules/vite/dist/node/chunks/dep-59dc6e00.js:38900:30)
at async doTransform (/home/thomassdk/code/eslint-unplugin-mre/node_modules/vite/dist/node/chunks/dep-59dc6e00.js:55857:29)
The text was updated successfully, but these errors were encountered:
There is a clash when trying to use the vite-plugin-eslint package with unplugin-icons in a svelte-vite-typescript project. I have created a minimal reproducible example with the steps taken to create the issue.
But long story short after configuring eslint to be compatible with svelte and adding the vite-plugin-eslint to the Vite config the project now fails to import an icon from unplugin-icons with the error:
The text was updated successfully, but these errors were encountered: