Webgl build throws deserialization error for Bolt Flow Macro,Webgl build gives serialization error for Bolt FlowMacro

I have created a library for Custom Bolt units and using it in my unity project as a dll. Everything works fine on the Editor but if I create a Webgl build for the same I get a deserialization error for Bolt.FlowMacro. I performed AOT pre-build as well but nothing seems to be working. Stuck on it for a long time. I have attached a screenshot of the actual error.

,I have created a library for custom Bolt units and using it as a dll in my unity project. Everything works correctly in the editor but the webgl build gives a deserialization error. I performed AOT pre-build as well but stuck with this error for long now. I have attached a screenshot of the actual error.

Any solution to this?