question

ryansurv avatar image
ryansurv asked ·

Clover with Angular

Forgive me if I sound ignorant, but Clover is auto-generating files with "Avro" that do not declare objects which fails strict mode with Angular. Is there something I am doing wrong or is this something that can be fixed?

example:

/**
 * Autogenerated by Avro
 * 
 * DO NOT EDIT DIRECTLY
 */

...

AppExclusionType = {
  ALL : "ALL",
  MARKET : "MARKET",
  SEARCH : "SEARCH",
  INSTALL : "INSTALL"
};


edit: This is coming from remote-pay-cloud-api

Remote Pay Cloud
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian answered ·

I looked into this in more depth and the root cause is that our typings file was incorrectly referencing source. The end result was that the TypeScript compiler was recompiling our source when building your project - this is obviously not ideal. I have fixed our typings and will let you know when we will be releasing the fix.

Update:

I just pushed an updated version 4.0.2 of Remote Pay Cloud that addresses the typings issue. Please give it a shot and let me know.


Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian answered ·

It sounds like something we should probably fix. Would you be willing to provide a simple repo with instructions on reproducing the issue?

20 comments Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello David! Thanks for the response. Simply installing remote-pay-cloud in an Angular app should reproduce the issue, I'm using Angular v8.1.3.

0 Likes 0 · ·

Sorry, I haven't worked with Angular in years. Should I use the CLI, create a project with strict mode enabled and then install rpc?

0 Likes 0 · ·
ryansurv avatar image ryansurv David Marginian ♦♦ ·

Yes sir! That should work.

0 Likes 0 · ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community