Fable.SignalR icon indicating copy to clipboard operation
Fable.SignalR copied to clipboard

Compile error: missing module http

Open Slesa opened this issue 3 years ago • 2 comments

Description

I tried to use Fable.SignalR in my project with the steps given in the docs, but I am running into compile errors.

Steps to reproduce

I've added Fable.SignalR, SignalR.Elmish, SignalR.Feliz. I've even tried to add SimpleHttp...

Error message

.fable/Fable.SignalR.0.11.5/HubConnection.fs(332,46): (332,50) error FSHARP: The namespace or module 'Http' is not defined. Maybe you want one of the following: HttpClient (code 39)

Slesa avatar Aug 23 '21 08:08 Slesa

There is a fable compile warning which might be interesting: "Error while reading metadata nodes in table itypars of assembly Fable.SignalR: the node has no matching declaration. Signal this warning, this assembly might has to be rebuilt"

Slesa avatar Aug 24 '21 07:08 Slesa

Hi @Slesa,

I'm not sure what the cause of your compile error is, the Http module is in the Fable.SignalR package. I'd recommend checking your version of the Fable compiler is up-to-date, and try cleaning out your .fable directory. Perhaps looking at the demo app might help?

There is a fable compile warning which might be interesting: "Error while reading metadata nodes in table itypars of assembly Fable.SignalR: the node has no matching declaration. Signal this warning, this assembly might has to be rebuilt"

This isn't an issue, you can safely ignore that warning.

Shmew avatar Sep 04 '21 22:09 Shmew