Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite-plugin-eslint vs. unplugin-icons #32

Closed
ink-pot-monkey opened this issue May 17, 2022 · 0 comments
Closed

vite-plugin-eslint vs. unplugin-icons #32

ink-pot-monkey opened this issue May 17, 2022 · 0 comments

Comments

@ink-pot-monkey
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant