Shopify / slate

Slate is a toolkit for developing Shopify themes. It's designed to assist your workflow and speed up the process of developing, testing, and deploying themes.
https://shopify.github.io/slate
MIT License
1.28k stars 364 forks source link

slate watch opens and uploads changes, but browsersync not live reloading #868

Closed markfenske84 closed 5 years ago

markfenske84 commented 5 years ago

I've noticed other people mentioning this problem, but never saw an answer actual shown anywhere. My issue is very similar to this one mentioned here: https://github.com/Shopify/slate/issues/763.

I've got my slate theme created and deploying to my development store, but when I use the 'slate watch' command, it opens a localhost browser window but its not using browsersync. It watches for any changes I make in my liquid files and uploads them when they're saved, but I have to manually reload to see the changes.

I'm not getting the same console errors mentioned in #763, however I do receive an error of "Uncaught ReferenceError: $ is not defined at theme.js?4027180390120274746:274" in the console.

How did others solve this problem?

jaredkc commented 5 years ago

Use slate start. Using watch still gets me somwtimes. It is confusing.

markfenske84 commented 5 years ago

Use slate start. Using watch still gets me somwtimes. It is confusing.

I've tried start as well and it doesn't work either.

My understanding of the only difference between slate start and slate watch is that watch spins up your localhost copy with browsersync, whereas start does the that as well, except it will also also deploys your current build to your shopify store.

huguestennier commented 5 years ago

Duplicated issue : https://github.com/Shopify/slate/issues/791

Gonna close this one in favor of #791.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.