react-plaid-link: Error loading Plaid null appears to be back in v2.2.3
I’m receiving the same Error loading Plaid null
that appears to be reported in issue #86 when upgrading to v2.2.3.
It does appear react-script-hook
was upgraded to v1.1.0 in v2.2.3, I haven’t dug in to see if that could be causing the issue or not.
If I navigate away and back, everything works and there is no error.
I downgraded to v2.2.1 and it works fine.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 20
- Comments: 18 (3 by maintainers)
It’s still an issue on v.3.2.0. Any plans to fix it?
I’m seeing this in 3.1.0. For me the issue is highly reproducible when I use multiple “link” buttons on the page. On initial load / page refresh one button usually loads correctly while the other buttons often (but not always) fail. When one fails it remains disabled and there is a stack trace like the below. Sometimes (but not always) they all load correctly.
@wnamen Unfortunately, I was not able to find a good solution for this. However, I added
<script src="https://cdn.plaid.com/link/v2/stable/link-initialize.js">
into my index.html as one user suggested in the comments at the bottom of #86 and this “fixed” the issue for us by making sure the script was loaded before the hooks get run. Not a permanent solution but it got us up and running until this issue gets resolved.Interesting I thought we fixed this in 3.1.0 via #164. I’ll have to take another look at the case where there are multiple link instances being initialized at the same time.
Also experiencing this for production users using
v3.0.0
. We had previously had issues with the link declaring more than once, but that was solved in #109, not sure if that fix unintentionally caused this as wellI can confirm as well this is still happening. @ipam73 solution works for now as a workaround. It would be great when this is fixed within the lib.
This is happening to me as well. I have a use case where I need multiple link buttons on one page, and get this error every time on page load. I’m on version 3.1.0 using usePlaidLink hook.
Error loading Plaid null
For now, also using the workaround by adding <script src="https://cdn.plaid.com/link/v2/stable/link-initialize.js"> into my index.html
I am experiencing this as well. It is (somewhat) consistent to reproduce if you have multiple components using the usePlaidLink hook loading at the same time. I have a use case where I want to have one PlaidLink control on the page for the user to link new institutions, and another PlaidLink control on the same page that will open Plaid in update mode for an existing institution link. In this scenario, I can keep refreshing the page, and about 50% - 75% of the time I will encounter this error which prevents one of the two controls from working.