Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: issue on generating hub types with tapper #291

Open
vkuprin opened this issue Dec 13, 2024 · 1 comment
Open

server: issue on generating hub types with tapper #291

vkuprin opened this issue Dec 13, 2024 · 1 comment
Assignees

Comments

@vkuprin
Copy link
Member

vkuprin commented Dec 13, 2024

yarn codegen-run:server
yarn run v1.22.22
$ dotnet tsrts --project ./GomokuServer/src/GomokuServer.Api/GomokuServer.Api.csproj --output ./GomokuClient/packages/gomoku-api/hubs --asm && yarn format
Start loading the csproj of /Users/kuprins/Desktop/Coding/gomoku/gomoku/GomokuServer/src/GomokuServer.Api/GomokuServer.Api.csproj.
Create Compilation...
Add Header...
Transpile GomokuServer.Api.Hubs.Messages.Client.ApproveRematchMessage...
Transpile GomokuServer.Api.Hubs.Messages.Client.ApproveUndoMessage...
Transpile GomokuServer.Api.Hubs.Messages.Client.GetClockMessage...
Transpile GomokuServer.Api.Hubs.Messages.Client.KeepAliveMessage...
Transpile GomokuServer.Api.Hubs.Messages.Client.MakeMoveClientMessage...
Transpile GomokuServer.Api.Hubs.Messages.Client.ReceiveInvitationToPlayMessage...
Transpile GomokuServer.Api.Hubs.Messages.Client.RematchRequestMessage...
Transpile GomokuServer.Api.Hubs.Messages.Client.RequestUndoMessage...
Transpile GomokuServer.Api.Hubs.Messages.Client.ResignClientMessage...
Transpile GomokuServer.Api.Hubs.Messages.Client.ChatMessageClientMessage...
Transpile GomokuServer.Api.Hubs.Messages.Client.SendInvitationToPlayMessage...
Add Header...
Transpile GomokuServer.Api.Hubs.Messages.Server.BothPlayersJoinedMessage...
GomokuServer.Api.Hubs.Messages.Server.BothPlayersJoinedMessage can not be transpiled.
======== Exception ========
System.InvalidOperationException: GomokuServer.Application.Games.Dto.PlayersDto is not supported.
   at Tapper.DefaultTypeMapperProvider.GetTypeMapper(ITypeSymbol type)
   at Tapper.TypeMappers.TypeMapper.MapTo(ITypeSymbol typeSymbol, ITranspilationOptions options)
   at Tapper.TypeTranslators.DefaultMessageTypeTranslator.Translate(CodeWriter& codeWriter, INamedTypeSymbol typeSymbol, ITranspilationOptions options)
   at Tapper.TypeScriptCodeGenerator.AddType(INamedTypeSymbol typeSymbol, CodeWriter& writer)
   at Tapper.Transpiler.Transpile()
   at TypedSignalR.Client.TypeScript.App.TranspileCore(Compilation compilation, String outputDir, NewLineOption newLine, Int32 indent, Boolean referencedAssembliesTranspilation, SerializerOption serializerOption, NamingStyle namingStyle, EnumStyle enumStyle, MethodStyle methodStyle, Boolean enableAttributeReference) in /home/runner/work/TypedSignalR.Client.TypeScript/TypedSignalR.Client.TypeScript/src/TypedSignalR.Client.TypeScript.Generator/App.cs:line 133
   at TypedSignalR.Client.TypeScript.App.Transpile(String project, String output, NewLineOption newLine, Boolean assemblies, SerializerOption serializer, NamingStyle namingStyle, EnumStyle enum, MethodStyle method, Boolean attribute) in /home/runner/work/TypedSignalR.Client.TypeScript/TypedSignalR.Client.TypeScript/src/TypedSignalR.Client.TypeScript.Generator/App.cs:line 55
@vkuprin
Copy link
Member Author

vkuprin commented Dec 13, 2024

FYI, @Alequez97

@vkuprin vkuprin changed the title server: issue on genereting hub types with tapper server: issue on generating hub types with tapper Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants