fable-getting-started icon indicating copy to clipboard operation
fable-getting-started copied to clipboard

Fix hanging issue by updating Fable compiler version

Open Bargsteen opened this issue 10 months ago • 0 comments

The build and start commands hang when using the old compiler version. At least on my MacBook Pro with macOS Sonoma and whatever machine/system @mickvikt is using (creator of the issue).

Closes https://github.com/Zaid-Ajaj/fable-getting-started/issues/34

Before:

npm run build

> build
> dotnet fable ./src && webpack

Fable: F# to JS compiler 4.0.0-snake-island-alpha-021
Thanks to the contributor! @voronoipotato
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing src/App.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (1 source files) parsed in 60ms

... hangs indefinitely

After:

npm run build

> build
> dotnet fable ./src && webpack

Fable 4.17.0: F# to JavaScript compiler
Minimum @fable-org/fable-library-js version (when installed from npm): 1.4.0

Thanks to the contributor! @ptrelford
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing src/App.fsproj...
src> dotnet restore App.fable-temp.csproj -p:FABLE_COMPILER=true -p:FABLE_COMPILER_4=true -p:FABLE_COMPILER_JAVASCRIPT=true
  Determining projects to restore...
  Restored /Users/kasper/Developer/Personal/fable-getting-started/src/App.fable-temp.csproj (in 1,69 sec).
src> dotnet restore /Users/kasper/Developer/Personal/fable-getting-started/src/App.fsproj
  Determining projects to restore...
  Restored /Users/kasper/Developer/Personal/fable-getting-started/src/App.fsproj (in 96 ms).
Project and references (1 source files) parsed in 3258ms

Started Fable compilation...
Compiled 1/1: src/App.fs
Fable compilation finished in 411ms

asset main.js 157 KiB [emitted] (name: main)
runtime modules 670 bytes 3 modules
modules by path ./src/fable_modules/fable-library-js.4.17.0/*.js 98.9 KiB
  ./src/fable_modules/fable-library-js.4.17.0/String.js 20 KiB [built] [code generated]
  ./src/fable_modules/fable-library-js.4.17.0/Numeric.js 1.6 KiB [built] [code generated]
  ./src/fable_modules/fable-library-js.4.17.0/Date.js 27.5 KiB [built] [code generated]
  ./src/fable_modules/fable-library-js.4.17.0/Types.js 5.95 KiB [built] [code generated]
  ./src/fable_modules/fable-library-js.4.17.0/RegExp.js 4.8 KiB [built] [code generated]
  ./src/fable_modules/fable-library-js.4.17.0/Util.js 22.7 KiB [built] [code generated]
  ./src/fable_modules/fable-library-js.4.17.0/BigInt.js 9.8 KiB [built] [code generated]
  ./src/fable_modules/fable-library-js.4.17.0/Decimal.js 6.49 KiB [built] [code generated]
./src/App.fs.js 128 bytes [built] [code generated]
./src/fable_modules/fable-library-js.4.17.0/lib/big.js 25.2 KiB [built] [code generated]
webpack 5.74.0 compiled successfully in 101 ms

Bargsteen avatar Apr 26 '24 13:04 Bargsteen