Closed omarreiss closed 4 years ago
Acceptance 🚧 Getting this error
yoast-acf-analysis.js?ver=2.3.0:422 Uncaught ReferenceError: YoastReplaceVarPlugin is not defined
at Object.10../config/config.js (yoast-acf-analysis.js?ver=2.3.0:422)
at o (yoast-acf-analysis.js?ver=2.3.0:1)
at yoast-acf-analysis.js?ver=2.3.0:1
at Object.1../collect/collect.js (yoast-acf-analysis.js?ver=2.3.0:6)
at o (yoast-acf-analysis.js?ver=2.3.0:1)
at yoast-acf-analysis.js?ver=2.3.0:1
at Object.9../app.js (yoast-acf-analysis.js?ver=2.3.0:407)
at o (yoast-acf-analysis.js?ver=2.3.0:1)
at r (yoast-acf-analysis.js?ver=2.3.0:1)
at yoast-acf-analysis.js?ver=2.3.0:1
...on post-edit
s and term-edit
s.
YoastReplaceVarPlugin
is expected to exist on line 5 of js/src/replacevars.js
.
I tried pointing to YoastSEO.wp.replaceVarsPlugin
directly (which is where we expose the plugin in post-scraper
, but that object doesn't have the ReplaceVar
object, that the YoastReplaceVarPlugin
that was set on the window used to have.
Acceptance 👍 ✅
:warning: Don’t merge until feature/social-metadata-previews-reactification
is merged into trunk
on wordpress-seo
. :warning:
Summary
This PR can be summarized in the following changelog entry:
Test instructions
This PR can be tested by following these steps:
script-data
branch on Yoast SEO ortrunk
if the PR is merged already.