solidjs / solid-meta

Write meta tags to the document head
127 stars 16 forks source link

`tags` attribute is optional in typing but throws runtime error when not provided #25

Open krymel opened 1 year ago

krymel commented 1 year ago

Hi,

the tags attribute in MetaProvider is defined optional but throws a runtime error when not provided:

Error: tags array should be passed to in node

Thanks and best

vthinkxie commented 1 year ago

meet the same problem as well

ryansolid commented 1 year ago

Having different types for server vs client modes of the same components is challenging to say the least. We can try some things with export maps perhaps, but I think the types would need to be done manually as the same source code wouldn't be able to generate different types.