WordPress v5.0.3 Gutenberg & JS error “Uncaught SyntaxError: missing ) after argument list”

After update from WP 5.0.2 to 5.0.3 I had issues in wp-admin. I couldn’t edit post data. There was JS error “Uncaught SyntaxError: missing ) after argument list”, undefined “_” (lodash) etc.

3 Answers
3

The issue for me was the clean_script_tag() function from Soil.

Removing add_filter('script_loader_tag', 'clean_script_tag'); solved the bug for me.

Leave a Comment