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

Building vanilla elmish project project fails with path too long error #3239

Closed
mmulji opened this issue Oct 20, 2022 · 2 comments
Closed

Building vanilla elmish project project fails with path too long error #3239

mmulji opened this issue Oct 20, 2022 · 2 comments

Comments

@mmulji
Copy link

mmulji commented Oct 20, 2022

Description

I built a new project using

dotnet new fable-elmish-react -n memory-palace-frontend -lang f#

Compiling it, yields the following error:

npm install -g esbuild
npm install
npx webpack-dev-server

  ./src/memory_palace_frontend.fsproj 39 bytes [built] [code generated] [1 error]

ERROR in ./src/memory_palace_frontend.fsproj
Module build failed (from ./node_modules/fable-loader/index.js):
Error: The specified file name or path is too long, or a component of the specified path is too long.
    at /Users/mmulji/memory-palace/frontend/node_modules/fable-loader/index.js:98:22
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

webpack 5.74.0 compiled with 1 error in 1975 ms
^C<i> [webpack-dev-server] Gracefully shutting down. To force exit, press ^C again. Please wait...

Repro code

dotnet new fable-elmish-react -n memory-palace-frontend -lang f#
npm install -g esbuild
npm install
npx webpack-dev-server

Expected and actual results

Please provide the expected and actual results.

Related information

  • Fable version: dotnet fable --version
    • 3.7.20
  • Operating system:
    • MacOS Monterey 12.6
@alfonsogarciacaro
Copy link
Member

This is strange, the "path is too long" error used to affect packages in node_modules frequently in Windows, but it seems to have been fixed in recent versions. But according to the report you're using macOS so I'm a bit puzzled.

Also, it's interesting the error comes from fable-loader because it's been a while since we don't use it so maybe the fable-elmish-react template hasn't been updated for a while. cc @MangelMaxime

The Fable docs offer some template alternatives that should be more up-to-date, like the Feliz template or the SAFE template.

@MangelMaxime
Copy link
Member

I am closing this issue because it has been reported for Fable 3, which is out of support now.

Also, it seems like fable-loader is used in the configuration of the project but this was only used with Fable 2, so perhaps the error come from the fact that the configuration is mixed between 2 version of Fable.

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

No branches or pull requests

3 participants