lfr / FSharp.Domain.Validation

Designing with types requires a lot of code - this library fixes that
MIT License
143 stars 7 forks source link

Problems with Fable 3.7.14 #28

Open DejanMilicic opened 2 years ago

DejanMilicic commented 2 years ago

I added FSharp.Domain.Validation.Fable (0.9.78) via Paket and now when compiling with Fable, I am getting following errors

.\.fable-build\fable_modules\FSharp.Domain.Validation.Common.0.9.78\_deprecated.fs(1,1): (1,1) error FSHARP: Files in libraries or multiple-file applications must begin with a namespace or module declaration, e.g. 'namespace SomeNamespace.SubNamespace' or 'module SomeNamespace.SomeModule'. Only the last source file of an application may omit such a declaration. (code 222)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\Box.fs(1,1): (1,1) error FSHARP: Files in libraries or multiple-file applications must begin with a namespace or module declaration, e.g. 
'namespace SomeNamespace.SubNamespace' or 'module SomeNamespace.SomeModule'. Only the last source file of an application may omit such a declaration. (code 222)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\Operators.fs(7,31): (7,36) error FSHARP: The value, constructor, namespace or type 'value' is not defined. (code 39)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\Thoth.fs(15,38): (15,43) error FSHARP: The value, constructor, namespace or type 'value' is not defined. (code 39)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\Thoth.fs(25,17): (25,25) error FSHARP: The value, constructor, namespace or type 'validate' is not defined. (code 39)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\_deprecated.fs(9,26): (9,42) error FSHARP: The type 'ValidationBlocks' is not defined. (code 39)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\_deprecated.fs(11,10): (11,16) error FSHARP: This construct is deprecated: This type abbreviation has one or more declared type parameters that do not appear in the type being abbreviated. Type abbreviations must use all declared type parameters in the type being abbreviated. Consider removing one or more type parameters, or use a concrete type definition that wraps an underlying type, such as 'type C<'a> = C of ...'. (code 35)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\_deprecated.fs(11,45): (11,61) error FSHARP: The type 'ValidationBlocks' is not defined. (code 39)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\_deprecated.fs(13,10): (13,18) error FSHARP: This construct is deprecated: This type abbreviation has one or more declared type parameters that do not appear in the type being abbreviated. Type abbreviations must use all declared type parameters in the type being abbreviated. Consider removing one or more type parameters, or use a concrete type definition that wraps an underlying type, such as 'type C<'a> = C of ...'. (code 35)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\_deprecated.fs(13,39): (13,55) error FSHARP: The type 'ValidationBlocks' is not defined. (code 39)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\_deprecated.fs(22,37): (22,42) error FSHARP: The value, constructor, namespace or type 'isBox' is not defined. (code 39)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\_deprecated.fs(27,17): (27,22) error FSHARP: The value, constructor, namespace or type 'value' is not defined. (code 39)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\_deprecated.fs(36,13): (36,16) error FSHARP: The value or constructor 'Box' is not defined. (code 39)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\_deprecated.fs(43,13): (43,16) error FSHARP: The value or constructor 'Box' is not defined. (code 39)
.\.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\_deprecated.Fable.fs(1,1): (1,1) error FSHARP: Files in libraries or multiple-file applications must begin with a namespace or module declaration, e.g. 'namespace SomeNamespace.SubNamespace' or 'module SomeNamespace.SomeModule'. Only the last source file of an application may omit such a declaration. (code 222)
DejanMilicic commented 2 years ago

I managed to solve this by manually copying following files, which were missing

.fable-build\fable_modules\FSharp.Domain.Validation.Common.0.9.78\_deprecated.fs
.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\_deprecated.Fable.fs
.fable-build\fable_modules\FSharp.Domain.Validation.Fable.0.9.78\Box.fs