WebSharper를 사용하는 방법을 배우고 있습니다. 사실, 나는 WebSharper를 사용하는 법을 배우지 못하고있다.WebSharper 4.0 자습서를 실행하지 못했습니다.
간단한 SPA를 작성하는 방법을 배우고 싶었 기 때문에 this tutorial from the WebSharper page을 따라갔습니다. Visual Studio 및 Zafir
(WebSharper 4.0의 코드 명은 베타)으로 SPA를 만들 수 있습니다. 튜토리얼의 모든 단계를 따랐습니다. 나는 a를 창조했다 repo on github that is everything in the SPA.
프로젝트는 건설하지 않을 것이다.는 구체적으로는, Client.fs
file에서 I 라인 11 Div
와 같은 에러 컴파일러 에러 께 P
와 라인 (10)에
The value or constructor P is not found
를 받고, 라인 (18)에서 I는 오류
Namesapces cannot contain values. Consider using a module to hold your value declrations.
Run()
와
, 아직 나는 module HelloWorld
에 [<SPAEntryPoint>]
정보를 이동하려고 할 때, 나는 오류를 얻을
Lookup on object of indeterminate type based on information prior to this program point. A type annotation...
결과적으로이 프로젝트를 빌드 할 때 빌드가 실패합니다.
왜 이러한 오류가 발생합니까? 이 튜토리얼은 WebSharper의 나머지 부분과 구식입니까? 올바르게 작동하는 간단한 자습서를 얻으려면 어떻게해야합니까?
편집 : WebSharper v3을 사용할 때도 같은 오류가 발생합니다. x도 있습니다.
open WebSharper.Html.Client
추가
open WebSharper.Html.Server
가
P
및
Div
와 컴파일러 에러를 제거 첨가
튜토리얼에서 언급하지 않았지만