Cannot destructure property 'Stack' of '__vite_ssr_import_2__.default' as it is undefined


I can’t seem to move past this issue. Is there a known issue with Polaris and Vite in the newest shopify init app command? I’m completely stuck

I believe the problem here is you’re using the deprecated <Stack> Polaris Component that has been replaced with <InlineStack> and <InlineGrid>.

Can you check your StepWelcome.jsx file and confirm this?

Also, what version of @shopify/polaris are you using?

I’ve gone around in circles on this, and I always end up back here getting the default export error. Have you ever seen this ? Uncaught SyntaxError: The requested module ‘/node_modules/.vite/deps/@shopify_polaris.js?v=3314e462’ does not provide an export named ‘default’ (at StepWelcome.jsx:2:8)