[Sage 10] Are components build path dependend? They break if you move the theme

Hey all,

I’ve mage a sage 10 component for Woocommerce Product images. It works fine in the wordpress installation where I build it. But when I clone the same theme the component breaks.

I don’t build / compile the theme in the new (remote) location. But I do have the /vendor and /dist folder in place. So the rest of it works fine. For now just not the new component.

This line breaks in the remote clone.

<x-wc-product-image type="all" />

But this line works fine in the remote clone

@component('components.wc-product-image',  ['type' => 'all'])@endcomponent

This leaves me thinking. Is the component build path dependent?
Is there a way to fix this or should I just drop using <x-* /> elements and switch to @component() usage.

This topic was automatically closed after 42 days. New replies are no longer allowed.