Closed ericanafziger closed 4 years ago
I am having the same issue. Currently, I have @shopify/slate-tools
: 1.0.0-beta.15
, going to update to beta.19 now add see if that helps.
Updating to beta.19 looks like it resolved the issue on my end. Thanks @jaredkc.
I was seeing this as well in 1.0.0-beta.15
and I found a temp solution here.
Add this code in node_modules/@Shopify/slate-tools/tools/dev-server/index.js within the bsConfig function
snippetOptions: {
rule: {
match: /<head[^>]*>/i,
fn: function(snippet, match) {
return match + snippet;
}
}
}
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.
Problem
When running
slate-tools start
orslate-tools watch
, a large unformatted block of code appears at the top of the site above the rest of the page. In the console there is an errorUncaught SyntaxError: missing ) after argument list
.Replication steps
slate-tools start
orslate-tools watch
slate-tools deploy
More Information
From what I can tell this issue is coming from the
{{ content_for_header }}
code in thetheme.liquid
file. Everything in here is being injected from Shopify and does not appear to be editable.