We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const [imagemin, webp] = await Promise.all([import('imagemin'), import('imagemin-webp')]);
https://github.com/adamlui/js-utils/blob/23b8bbb60944f8207e9793ad3ec021ffedb39f9e/img-to-webp/img-to-webp.js#L18C1-L18C94 results in
Error: 18:55 error Unable to resolve path to module 'imagemin' import/no-unresolved Error: 18:75 error Unable to resolve path to module 'imagemin-webp' import/no-unresolved
The text was updated successfully, but these errors were encountered:
Added cdn|imagemin to import/no-unresolved ignorelist to avoid fa…
cdn|imagemin
import/no-unresolved
2d0b7d3
…lse positives (import-js/eslint-plugin-import#3118, import-js/eslint-plugin-import#3119)
Are these packages installed locally?
Sorry, something went wrong.
Indeed they are via package.json dependencies
... "dependencies": { "imagemin": "^9.0.0", "imagemin-webp": "^8.0.0" } ...
The issue then, seems to be that both of these packages lack a main, and use type: module, and this package doesn't support the exports field yet.
main
exports
I'd suggest putting them in import/ignore in the meantime.
import/ignore
I already did but maybe you should add a feature to auto-detect unsupported pkg types to not false positive in the meantime for better UX
Due to the way resolvers are implemented, that would probably take almost as much time as the support itself.
No branches or pull requests
https://github.com/adamlui/js-utils/blob/23b8bbb60944f8207e9793ad3ec021ffedb39f9e/img-to-webp/img-to-webp.js#L18C1-L18C94 results in
The text was updated successfully, but these errors were encountered: