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

[Bug]: can't install @react-icons/all-files with yarn 4 and pnpm linker on macOS #888

Open
neongreen opened this issue Jan 2, 2024 · 4 comments
Labels

Comments

@neongreen
Copy link

Describe the bug

yarn 4 switched to a different linking mechanism, which apparently doesn't mesh well with case-insensitive files.

gi contains both GiHeadshot.esm.js and GiHeadShot.esm.js, which breaks:

[Error: EEXIST: file already exists, link '.../.yarn/berry/index/13/13357b134c300c39e934c4846275ff007e048499.dat' -> '.../node_modules/.store/@react-icons-all-files-virtual-b21badcc3c/package/gi/GiHeadshot.js'] {
  errno: -17,
  code: 'EEXIST',
  syscall: 'link',
  path: '.../.yarn/berry/index/13/13357b134c300c39e934c4846275ff007e048499.dat',
  dest: '.../node_modules/.store/@react-icons-all-files-virtual-b21badcc3c/package/gi/GiHeadshot.js'
}

Expected behavior

Minimal sample repository URL

Steps To Reproduce

mkdir foo && cd foo
yarn init --yes
yarn set version 4.0.2
echo "nodeLinker: pnpm" >> .yarnrc.yml
yarn add @react-icons/all-files

Package version

@react-icons/all-files@npm:4.1.0

Relevant log output

No response

Additional context

No response

@neongreen neongreen added the Bug label Jan 2, 2024
@neongreen neongreen changed the title [Bug]: can't install with yarn 4 and pnpm linker on macOS [Bug]: can't install @react-icons/all-files with yarn 4 and pnpm linker on macOS Jan 2, 2024
@kamijin-fanta
Copy link
Member

It seems to be a problem with other file systems as well. However, @react-icons/all-files has not been updated for a while. Is it possible to use react-icons instead?

@neongreen
Copy link
Author

neongreen commented Jan 11, 2024 via email

@kamijin-fanta
Copy link
Member

If you use Webpack, Vite, etc., TreeShaking will work fine, but some frameworks such as Meteor are not supported. These are environment and configuration dependent.

@neongreen
Copy link
Author

Oh okay. I’ll try the normal react-icons eventually and see how it goes.

This said, the original issue doesn’t affect me anymore because I switched from yarn to pnpm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants