slogsdon / parcel-plugin-fable

Parcel asset type plugin for Fable
https://www.npmjs.com/package/parcel-plugin-fable
MIT License
21 stars 4 forks source link

Error on build Fable.Elmish.React exemple #11

Open evilz opened 6 years ago

evilz commented 6 years ago

Hi,

I got strange error when I try to run the code from this template : https://github.com/fable-elmish/templates/tree/master/src/react-demo/Content/src

yarn start v0.27.5
$ yarn dotnet:run-script js:start
Fable (1.3.2) daemon started on port 61225
CWD: D:\Repos\sourcing-product-generation
cmd /C yarn run js:start
Server running at http://localhost:1234
∞  Building App.fs...
ERROR: D:/Repos/sourcing-product-generation/src/App.fs doesn't belong to any of loaded projects []
   at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1379.Invoke(String message)
×  src\App.fs: D:/Repos/sourcing-product-generation/src/App.fs doesn't belong to any of loaded projects []
slogsdon commented 6 years ago

Thanks for the report, @evilz!

We'll need to resolve the fsproj file and pass it during the compilation process to fully support referencing fs files. I've started in on this work, but I still have a bit left to generalize the solution.