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

Unable to resolve path to module - Nextjs #296

Open
5 tasks done
alishour-dev opened this issue Jul 17, 2023 · 1 comment
Open
5 tasks done

Unable to resolve path to module - Nextjs #296

alishour-dev opened this issue Jul 17, 2023 · 1 comment

Comments

@alishour-dev
Copy link

Describe the bug

I followed all the steps to make this Icons library work within my setup (Nextjs application), however I'm getting an Eslint error that says:
Unable to resolve path to module '~icons/dashicons/arrow-right.jsx'.eslint[import/no-unresolved](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/no-unresolved.md) module "~icons/*"

Reproduction

Error with Nextjs 13

System Info

Ubuntu 22.0

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@odanado
Copy link

odanado commented Sep 7, 2024

The following settings may resolve your errors if you add them to ESLint.

      rules: {
        "import/no-unresolved": ["error", { ignore: ["^~icons/"] }],
      },

ref: hannoeru/vite-plugin-pages#41

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

2 participants