Regarding the use of {% javascript %}

Short description of issue

Why is the generated scripts.js file incomplete when I use {% javascript %} to write code during section development?

Reproduction steps

none

Additional info

none

What type of topic is this

Troubleshooting

Upload screenshot(s) of issue

Maybe there was a problem, have you tried busting the cache by modifying the different snippets of code inside the {% javascript %} tags ?

1 Like

Hey @Tobey , just +1ing what @teamdijon mentioned here. Without seeing your actual code, it’s tough to pinpoint exactly what’s going on, but this usually happens when there’s a syntax error in the JavaScript, Liquid code accidentally used inside the {% javascript %} tag (which won’t render there), or multiple {% javascript %} tags in the same section file.

If you’re open to sharing the contents of your {% javascript %} block (or the full file), I’d be happy to take a look. Also, any error messages you’re seeing in the theme editor or browser console would be super helpful!

Hey @Tobey - just following up here to see if we can still assist, let me know!

Hey @Tobey - going to close out the thread for now, but let me know if we can assist further :slight_smile: