4👍
✅
The Plaid CDN script creates a global variable: window.Plaid
. However, your component incorrectly refers to it via this.Plaid
. In the Vue SFC, this
is the component instance, which only contains its own properties declared in the component definition. this
does not include global variables from window
.
The solution is to use window.Plaid
:
export default {
data() {
return {
pl: window.Plaid,
}
}
}
Source:stackexchange.com