dataverse-ify icon indicating copy to clipboard operation
dataverse-ify copied to clipboard

Error generating Email entity, cannot find `FileType` data type

Open lalberto8085 opened this issue 3 years ago • 2 comments

I was just generated the Email entity and there's a column named descriptionblobid of type FileType here's what I get in VsCode:

  // Description File Id FileType File that contains description content.
  descriptionblobid?: FileType | null;

where FileType is unknown, I'm not using that field right now and I can think of a workaround for it that is just creating a utility file with

type FileSystem = string;

OR

  descriptionblobid?: string | null;

and then fix every time we regenerate the file. Any advise is greatly appreciated, thanks

lalberto8085 avatar Oct 14 '22 14:10 lalberto8085

Hi @lalberto8085 - yes you are right - this is an issue with version 1 of dataverse-ify (https://github.com/scottdurow/dataverse-gen/issues/12) - It is fixed in version 2 which is beta right now! https://github.com/scottdurow/dataverse-ify/blob/v2/UPGRADING.md

You can upgrade to version 2 by using npm install dataverse-ify@2 with npx dataverse-gen@2 But your workarounds are both good in the mean-time!

scottdurow avatar Oct 14 '22 16:10 scottdurow

Thank you very much, I will give it a try asap

lalberto8085 avatar Oct 14 '22 18:10 lalberto8085