Closed dotnetspec closed 1 month ago
Hello,
The first thing that surprise me is that you are using Fable 2 and not Fable 3 or 4. (fable-compiler version: 2.13.0
)
Please, note that the latest version of Fable is version 4.
I will look to update/fork the example to use Fable 4 instead of Fable 3.
While I do that, you can follow the instruction on Fable documentation to have a step by step tutorial on how to setup everything.
Ok, thanks, updating to Fable 4 fixed it.
Description
I cloned the fable3-samples repo and attempted the first Easy project 'browser'. Following the instructions in Readme.md on 'npm start' I get the error above on the following import:
Fable.Core.JsInterop
I noted thatFable.Core.JsInterop
is used in 12 of the sample apps (i.e. most of them).Repro code
App.fs:
.fsproj:
i.e. all files as per repo.
Expected and actual results
Expected: Code compiles and runs in http://localhost:8080/
Actual:
Related information
dotnet version: 8.0.303 fable-compiler version: 2.13.0 fable-core version: 4.3.0 Operating system: Linux Mint 21.3 Cinnamon
What is the issue and how do I resolve it? ... thanks ...