My relevant code is as follows
function useLink(token){
const handler = Plaid.create({
token: token,
onSuccess: (public_token, metadata) => {},
onLoad: () => {},
onEvent: (eventName, metadata) => {},
recievedRedirectUri: window.location.href,
});
}
But everytime I try to use my link token to pull up link on the frontend, I get the following error from link-unitialize.js:
Uncaught TypeError: Cannot read properties of null (reading 'style')
I checked the Plaid website and couldn't find this listed as a common error, so I must be doing something very wrong. What is the most likely cause of this?