You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the terminal, cd into src folder and install Feliz.Recoil with the regular dotnet add package Feliz.Recoil
Add open Feliz.Recoil and let textState = Recoil.atom("Basic/textState", "Hello world!") to the App.fs file.
cd back to the root folder and run dotnet fable src
The build will fail with error messages relating to Fable.Extras
Expected behavior
The build should not fail.
Additional context
Click to see error messages:
./src/Main.fs(6,1): (6,16) warning FSHARP: This construct is deprecated. ReactDOM.render is obsolete since React v18. Please use the ReactDOM.createRoot API instead (code 44)
./src/Main.fs(6,1): (10,2) warning FSHARP: This construct is deprecated. ReactDOM.render is obsolete since React v18. Please use the ReactDOM.createRoot API instead (code 44)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(149,17): (149,19) error FSHARP: This type parameter has been used in a way that constrains it to always be ''a option' (code 663)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(149,17): (149,19) error FSHARP: This code is less generic than required by its annotations because the explicit type variable 'V' could not be generalized. It was constrained to be ''a option'. (code 660)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(210,25): (210,28) error FSHARP: The generic member 'set' has been used at a non-uniform instantiation prior to this program point. Consider reordering the members so this member occurs first. Alternatively, specify the full type of the member explicitly, including argument types, return type and any additional generic parameters and constraints. (code 1198)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(210,75): (210,80) error FSHARP: Type mismatch. Expecting a
''a option option'
but given a
''a option'
The types ''a' and ''a option' cannot be unified. (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(266,21): (266,23) error FSHARP: This type parameter has been used in a way that constrains it to always be ''a option' (code 663)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(266,21): (266,23) error FSHARP: This code is less generic than required by its annotations because the explicit type variable 'V' could not be generalized. It was constrained to be ''a option'. (code 660)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(293,25): (293,28) error FSHARP: The generic member 'set' has been used at a non-uniform instantiation prior to this program point. Consider reordering the members so this member occurs first. Alternatively, specify the full type of the member explicitly, including argument types, return type and any additional generic parameters and constraints. (code 1198)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(293,75): (293,80) error FSHARP: Type mismatch. Expecting a
''a option option'
but given a
''a option'
The types ''a' and ''a option' cannot be unified. (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(984,28): (984,50) error FSHARP: A unique overload for method 'Date' could not be determined based on type information prior to this program point. A type annotation may be needed.
Known type of argument: int
Candidates:
new: ticks: int -> Date
new: ticks: int64 -> Date
private new: ?inp: obj -> Date (code 41)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(984,28): (984,50) error FSHARP: This is not a valid object construction expression. Explicit object constructors must either call an alternate constructor or initialize all fields of the object and specify a call to a super class constructor. (code 696)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(985,30): (985,52) error FSHARP: This is not a valid object construction expression. Explicit object constructors must either call an alternate constructor or initialize all fields of the object and specify a call to a super class constructor. (code 696)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(985,30): (985,52) error FSHARP: A unique overload for method 'Date' could not be determined based on type information prior to this program point. A type annotation may be needed.
Known type of argument: int
Candidates:
new: ticks: int -> Date
new: ticks: int64 -> Date
private new: ?inp: obj -> Date (code 41)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(2318,45): (2318,49) error FSHARP: This expression was expected to have type
'JS.TypedArray<'T>'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(2689,45): (2689,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(2784,45): (2784,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(2879,45): (2879,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(2974,45): (2974,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3069,45): (3069,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3164,45): (3164,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3259,45): (3259,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3354,45): (3354,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3449,45): (3449,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3544,45): (3544,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3635,45): (3635,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3946,21): (3950,92) error FSHARP: The field 'captures' appears multiple times in this record expression. (code 3522)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3952,21): (3956,40) error FSHARP: The field 'captures' appears multiple times in this record expression. (code 3522)
Compilation failed
The text was updated successfully, but these errors were encountered:
Description
Compalition fails because of issues with Fable.Extras
Steps to reproduce
dotnet add package Feliz.Recoil
open Feliz.Recoil
andlet textState = Recoil.atom("Basic/textState", "Hello world!")
to the App.fs file.dotnet fable src
Expected behavior
The build should not fail.
Additional context
Click to see error messages:
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(984,28): (984,50) error FSHARP: This is not a valid object construction expression. Explicit object constructors must either call an alternate constructor or initialize all fields of the object and specify a call to a super class constructor. (code 696)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(985,30): (985,52) error FSHARP: This is not a valid object construction expression. Explicit object constructors must either call an alternate constructor or initialize all fields of the object and specify a call to a super class constructor. (code 696)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(985,30): (985,52) error FSHARP: A unique overload for method 'Date' could not be determined based on type information prior to this program point. A type annotation may be needed.
Known type of argument: int
Candidates:
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(2318,45): (2318,49) error FSHARP: This expression was expected to have type
'JS.TypedArray<'T>'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(2689,45): (2689,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(2784,45): (2784,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(2879,45): (2879,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(2974,45): (2974,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3069,45): (3069,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3164,45): (3164,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3259,45): (3259,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3354,45): (3354,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3449,45): (3449,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3544,45): (3544,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3635,45): (3635,49) error FSHARP: This expression was expected to have type
'JS.TypedArray'
but here has type
'bool' (code 1)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3946,21): (3950,92) error FSHARP: The field 'captures' appears multiple times in this record expression. (code 3522)
./src/fable_modules/Fable.Extras.0.2.2/Extras.fs(3952,21): (3956,40) error FSHARP: The field 'captures' appears multiple times in this record expression. (code 3522)
Compilation failed
The text was updated successfully, but these errors were encountered: