callstack / callstack/haul

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

Open
#748 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted high priority
Dominant language
TypeScript
Stars
3.7k
Forks
185
PR merge metrics
No merged PRs in 30d

Description

The name chosen in:

https://github.com/callstack/haul/blob/c0bfea756dfd52f965531e0b92927fcda8440980/packages/haul-core/src/webpack/loaders/assetLoader.ts#L50-L56

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'
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.