Classic editor should have nothing to do with it, ACF works with Gutenberg, too. And the JS errors have nothing to do with this as well.
It’s hard to tell why it isn’t working (without classic editor) from the little snippet you provided. It would help if you showed us all of the template code and perhaps a screenshot of the field setup in the admin screen.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users