
I have a component developed in a component library. It works in existing apps but now when I include it in any new app an error is generated in both of the output properties (one a record and the other a table). The error message for both is similar:
The record [table] passed in has none of the expected fields [columns]: SampleBooleanField, SampleNumberField, SampleStringField
I have found two ways to fix the error both of which require me to copy the component into the new app, so the solution is really for the copied component but it may provide insight as to what is going on. In the copied component both of the output have a variable that is set within the component using Set() function. In the copied component I can remove the error with one of the following methods:
I have looked inside my component library app (the source for the component) and there are no errors there. I also can insert multiple instances of the component in the existing app and there are no errors. The errors appear only when the component is added into a new app. I find the error message off because I thought that was more associated with the input parameters and what gets passed in. While I can get passed this with a copied component my motivation is to leverage the component library to ensure consistency.