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

Yarn build fails due to ENAMETOOLONG #10657

Open
rafaelromcar-parabol opened this issue Jan 10, 2025 · 1 comment
Open

Yarn build fails due to ENAMETOOLONG #10657

rafaelromcar-parabol opened this issue Jan 10, 2025 · 1 comment
Assignees
Labels
bug DX Developer Experience

Comments

@rafaelromcar-parabol
Copy link
Contributor

Issue - Bug

  • How serious is the bug? P3
  • OS: macOS / Linux / Windows / ?
  • Browser: Chrome / Safari / Lynx / ? + version
  • Node version: node --version
  • NPM version: npm --version

I'm getting the following error when building from my usual dev folder:

{"time":"2025-01-10T11:14:12.788Z","level":"info","message":"building mattermost-plugin []"}
$ /home/rafaelromcar-parabol/Parabol/github/ParabolInc/parabol/node_modules/.bin/webpack --config ./prod.webpack.config.js --env=minimize=false
clientRoot /home/rafaelromcar-parabol/Parabol/github/ParabolInc/parabol/packages/mattermost-plugin
[webpack-cli] [Error: ENAMETOOLONG: name too long, open '/home/rafaelromcar-parabol/Parabol/github/ParabolInc/parabol/build/mattermost-plugin_vendors-node_modules_mattermost_compass-icons_components_index_js-node_modules_mui_material_I-cb4761_ae7fcdbbe6845a7f2693.js.map'] {
  errno: -36,
  code: 'ENAMETOOLONG',
  syscall: 'open',
  path: '/home/rafaelromcar-parabol/Parabol/github/ParabolInc/parabol/build/mattermost-plugin_vendors-node_modules_mattermost_compass-icons_components_index_js-node_modules_mui_material_I-cb4761_ae7fcdbbe6845a7f2693.js.map'
} 

My Parabol folder is in /home/rafaelromcar-parabol/Parabol/github/ParabolInc/parabol which is long but not that long.

Acceptance Criteria (optional)

Users can:

  • Build the application in folders that have long paths
    Triage is performed to find the root cause of the bug, timeboxed to ~1 hour.

Estimated effort: 1 hour to triage. More if root cause is already identified.

@rafaelromcar-parabol
Copy link
Contributor Author

It also failed using the folder /home/rafaelromcar-parabol/parabol-test to build the application

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

No branches or pull requests

2 participants