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

Asset naming algorithm causes ENAMETOOLONG when using react-navigation and pnpm #748

Open
spion opened this issue Jun 26, 2020 · 0 comments

Comments

@spion
Copy link

spion commented Jun 26, 2020

The name chosen in:

const normalizedName =
url.length === 0
? filename
: `${url.replace(pathSepPattern, '_')}_${filename}`;
const longName = `${normalizedName
.toLowerCase()
.replace(/[^a-z0-9_]/g, '')}.${type}`;

causes ENAMETOOLONG due to unknown reasons (the name is below 255 characters which should be fine on Linux)

error ▶︎ [Error: ENAMETOOLONG: name too long, 
open '/.../drawable-mdpi/node_modules_pnpm_reactnavigation_stack551_a182da6647d2184b7d281770a34a973a_node_modules_reactnavigation_stack_src_views_assets_backiconmask.png'] 
{ errno: -36, 
  code: 'ENAMETOOLONG', 
  syscall: 'open', 
  path: '/.../drawable-mdpi/node_modules_pnpm_reactnavigation_stack551_a182da6647d2184b7d281770a34a973a_node_modules_reactnavigation_stack_src_views_assets_backiconmask.png' 
}
@spion spion changed the title Asset naming algorithm causes ENAMETOOLONG when using react-navigation Asset naming algorithm causes ENAMETOOLONG when using react-navigation and pnpm Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants