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

(fix): eslint import/no-unresolved issue #27

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

mzonski
Copy link
Contributor

@mzonski mzonski commented Aug 21, 2024

Because of the missing 'main' key the eslint-plugin-import:resolver:node cannot resolve the package as a directory, thus throwing import/unresolved error/warning.

Here's the link to the place in code that is failing: https://github.com/browserify/resolve/blob/fd788d94d037e32d4f4be948e2f7e15f6981f004/lib/sync.js#L180

If the main is not set, it defaults to index.js in the package's root folder, you're exporting index.js and declaration in the dist directory thus it's producing an error in the code pointed upper.

Because of the missing 'main'  key the eslint-plugin-import:resolver:node wasn't able to resolve the package as a directory thus throwing import/unresolved error/warning
@jaywcjlove jaywcjlove merged commit 00b2942 into jaywcjlove:main Aug 22, 2024
github-actions bot pushed a commit that referenced this pull request Aug 22, 2024
Because of the missing 'main'  key the eslint-plugin-import:resolver:node wasn't able to resolve the package as a directory thus throwing import/unresolved error/warning 00b2942
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

Successfully merging this pull request may close these issues.

2 participants