Theme app extension development - load a localhost script for faster dev

Hi,

Can I link to a local script during dev?

I tried this code inside the liquid template (i’m using vitejs)


But i’m not having much luck with that

I get this error when I run shopify extension push

An unexpected error occurred on Shopify.

This command ran with ID: 59950
Please include this information in any issues/report along with relevant logs
/usr/local/Cellar/shopify-cli/2.1.0/gems/shopify-cli-2.1.0/lib/project_types/extension/tasks/update_draft.rb:21:in `call': undefined method `dig' for nil:NilClass (NoMethodError)

Is it possible to link a localhost script for faster dev iteration?

Thank you

I managed to add the dev scripts like so


The theme extension is BRILLIANT but the dev cycle is not that great, you have to exec shopify extension push then “Create version” then wait for a minute to view your liquid changes