Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Polarish components issue with type script

Polarish components issue with type script

Ohed_Ali
Visitor
2 0 1

Hi Team,

I am creating a custom app to show the custom data from data base, I am trying to use https://polaris.shopify.com/components/tables/index-table?example=index-table-with-views-search-filter-sorting .

but while trying this as .jsx file, it's giving me type script error: 'import type' declarations can only be used in TypeScript files.ts(8006)

or while save as .tsx then it's giving error: '"@shopify/polaris"' has no exported member named 'TabProps'. Did you mean 'TabsProps'?ts(2724)

 

Can anyone please suggest me how to use this components in my app.

 

I am creating app using laravel template: https://github.com/Shopify/shopify-app-template-php 

 

I need to fix this issue ASAP. I just need to place all the data fields (i.e: name, email, customer details, etc) as a data field with search atleast. Please let me know if anyone has the component ready also.

 

Thanks in advance.

 

 

Reply 1 (1)

Brennan_AG
Shopify Partner
1 0 0

Did you ever solve this?