Fable: Multiproject solution shared lib problem

Created on 9 Jul 2017  路  4Comments  路  Source: fable-compiler/Fable

Description

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

Repro code

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 ../..

Expected and actual results

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.

Related information

  • Fable version (dotnet fable --version): 1.1.8
  • Operating system: macOS Sierra 10.12.5

Most helpful comment

Thank you @alfonsogarciacaro very much. Works like a charm.

All 4 comments

I'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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

forki picture forki  路  3Comments

tomcl picture tomcl  路  4Comments

stkb picture stkb  路  3Comments

MangelMaxime picture MangelMaxime  路  3Comments

nozzlegear picture nozzlegear  路  3Comments