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
Icons Preset Node Loader does not work when using Yarn PnP #3667
Comments
I am sorry, but I am not interested in supporting Yarn PnP. |
Then it would be good to mention this clearly in the documentation. The docs do include |
That's interesting. I didn't know they are doing PnP by default now, which is also kind of sad because it requires the ecosystem to have special handling for it. In that case, I am open to contributions if the implementation is not too difficult. But supposedly, the code to fix it is not in this repo but somewhere down the line, like Reopen to keep track of it. |
Confirmed and trying to debug it... When trying to debug it, found a related issue:
Triggered by edit: option |
Figured it out. Error is caused by So 2 unrelated issues. |
UnoCSS version
0.58.8
Describe the bug
When using Yarn PnP, the icons preset does not pick up on any Iconify dependencies being present. I suspect this is caused by the "Node Loader" deferring to a filesystem lookup - this fails because when using PnP: there is no
node_modules
folder as all the dependencies are zipped and made available on demand when importing a dependency.I did find a workaround by modifying the icons preset configuration:
System Info
No response
Validations
The text was updated successfully, but these errors were encountered: