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

Error in Unity WebGL build #196

Open
endel opened this issue Nov 6, 2016 · 1 comment
Open

Error in Unity WebGL build #196

endel opened this issue Nov 6, 2016 · 1 comment
Labels

Comments

@endel
Copy link

endel commented Nov 6, 2016

Hey there,

First of all, thanks for this awesome library.

I'm importing the binary unity (not unity-full, version 0.9.0-beta1) and building for the web and here's the error that I get:

Attempting to call method 'MsgPack.Serialization.SerializationContext::GetSerializer' for which no ahead of time (AOT) code was generated.
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.

Is this error expected? I see that @tametick had a similar issue, but I'm not sure if it's the same.

Cheers!

@yfakariya
Copy link
Member

yfakariya commented Nov 9, 2016

Sorry for delay. It should be same (AOT issue) which is caused by missing MessagePackSerialiazer.PrepareType<T>() call for required types...

Please try to call PrepareType<T> for you want to (de)serialize and its dependencies.

It should be more accurate when you put the full stack trace if available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants