Currently, TypeScript is throwing an error on s-app-nav:
Property ‘s-app-nav’ does not exist on type ‘JSX.IntrinsicElements’.ts(2339)
s-link is throwing the error:
Type ‘{ children: string; href: string; rel: string; }’ is not assignable to type ‘ReactProps$w & ReactBaseElementPropsWithChildren’.
Property ‘rel’ does not exist on type ‘ReactProps$w & ReactBaseElementPropsWithChildren’.ts(2322)
Temporary solution
I’ve manually defined both elements that are throwing an error in env.d.ts:
I have the same problem with `ui-save-bar`, then try to investigate why this error happen.
I think that there is a minor difference in declaration of components in @shopify/polaris-types (Typescript OK) and @shopify/app-bridge-types(Typescript error).
In @shopify/polaris-types, one element is declared both in module react and global.
s-link component is missing a definition for the ‘rel’ attribute.
I’ve noticed a bunch of missing attributes for the new polaris web-components which has made migrating a pain. What is the best way to get these known? Make a post here?
I’d gladly make a PR for just fixing types when I run across them, but AFAIK this is not possible.