Giraffe.ViewEngine.StrongName breaks compatability with Giraffe server
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- fsharp
- 领域
- backend
调研方向
使用 Giraffe template、Plotly.Net 4.1.0 或更高版本,以及所描述的 dotnet 8.0.204 环境,重现报告的构建失败。检查 Components.fs 第 286 行和 Program.fs 第 57 行背后的依赖版本;完成标准是示例项目能够构建,且不存在 Giraffe.ViewEngine 与 Giraffe.ViewEngine.StrongName 之间的类型不匹配。
由索引模型根据 Issue 内容生成。
描述
Description
Hey, thanks for you effort in this library, it really is amazing.
I came about an issue with the fork project mentioned here https://github.com/giraffe-fsharp/Giraffe.ViewEngine/issues/23
It is currently not possible to render a chart to json in a giraffe backend via toJson gChart as it was added in version 4.1.0 which doesn't work with giraffe due to a presence of forked Giraffe.ViewEngine.StrongName package
Components.fs(286,9): error FS0001: All elements of a list must be implicitly convertible to the type of the first element, which here is
'Giraffe.ViewEngine.HtmlElements.XmlAttribute (Giraffe.ViewEngine.StrongName, Version=2.0.0.0, Culture=neutral, PublicKeyToken=028aa8e2a326f4d0)'.
This element has type 'Giraffe.ViewEngine.HtmlElements.XmlAttribute (Giraffe.ViewEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)'.
[Components.fsproj::TargetFramework=net8.0]
Repro steps
dotnet new giraffe -o plot
cd plot
dotnet add package Plotly.Net
dotnet build
Expected behavior
Project builds
Actual behavior
/home/a/projects/plot/Program.fs(57,14): error FS0001: This expression was expected to have type 'Giraffe.ViewEngine.HtmlElements.XmlNode (Giraffe.ViewEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)' but here has type 'Giraffe.ViewEngine.HtmlElements.XmlNode (Giraffe.ViewEngine.StrongName, Version=2.0.0.0, Culture=neutral, PublicKeyToken=028aa8e2a326f4d0)' [/home/a/projects/plot/plot.fsproj]
Build FAILED.
Known workarounds
Fork Plotly.Net and revert the change
Related information
- Operating system Linux
- Branch v4.1.0+
- dotnet 8.0.204
- 主要语言
- F#
- 星标
- 860
- 派生
- 99
- 平均合并
- 22 分钟
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
plotly/Plotly.NET 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 78/100
plotly/Plotly.NET#498 ·
-
难度 3/5 1-2 天 新手友好度 42/100
plotly/Plotly.NET#495 · 3 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
plotly/Plotly.NET#494 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
plotly/Plotly.NET#492 ·
-
难度 4/5 3-5 天 新手友好度 38/100
plotly/Plotly.NET#485 · 1 条评论 ·
查看 plotly/Plotly.NET 的全部 Issue
相似的 Issue
-
documentation
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 74/100
get-convex/migrations#69 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
thedotmack/claude-mem#4161 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
connectrpc/connect-py#342 ·
-
01 type: bug
难度 2/5 1-3 小时 新手友好度 84/100
plone/cookieplone-templates#471 ·