In solution with 3 projects where A project is used by B and C projects,
and project C uses B project, and all three projects use same library (in my case Fable.PowerPack)
compilation fails with error ==> /Users/ed/git/github.com/ed-ilyin/FableMultiProjectProblem/src/Core/Core.fs(3,11): (3,20) error FSHARP: The namespace 'PowerPack' is not defined. error
npm5 is required.
git clone https://github.com/ed-ilyin/FableMultiProjectProblem.git
cd FableMultiProjectProblem
npm install
dotnet restore
cd src/App
dotnet fable npm-run split
cd ../..
Successful compilation is expected, but got unexpected compilation error: error ==> /Users/ed/git/github.com/ed-ilyin/FableMultiProjectProblem/src/Core/Core.fs(3,11): (3,20) error FSHARP: The namespace 'PowerPack' is not defined.
dotnet fable --version): 1.1.8I'm getting the same problem since Fable 1.0
I'm on Window 10.
Probably it's an issue when reordering the project references before merging the files. I'll have a look. Thanks a lot for the report and the repro!
This problem should be fixed with dotnet-fable 1.1.9, could you please check?
Thank you @alfonsogarciacaro very much. Works like a charm.
Most helpful comment
Thank you @alfonsogarciacaro very much. Works like a charm.