Next.js Project utilizing Hubspot forms is throwing this: TypeError: t.report is not a function

I’m currently working on a Next project that utilizes Hubspot forms. It appears that the Hubspot forms are throwing an error. The stack-trace is below.

TypeError · t.report is not a function
https://js.hsleadflows.net/leadflows.js:1:29829 Object.getPortalId
https://js.hsleadflows.net/leadflows.js:1:542469 Object.setUpErrorReporting
https://js.hsleadflows.net/leadflows.js:1:542185 Object.setUp
https://js.hsleadflows.net/leadflows.js:1:543387 a
https://js.hsleadflows.net/leadflows.js:1:545151
https://js.hsleadflows.net/leadflows.js:1:545155

I’ve tried to hunt down a solution to this issue but haven’t been able to find anything that resolves this error. Any help would be greatly appreciated.

I’ve tried Googling the error and looking at both the Hubspot and Next.js documentation to determine if this is a common error. The only lead I got was in a Hubspot forum, with a user that was encountering the same error, but there was not resolution in that thread. I’ll link the thread below for reference.

https://community.hubspot.com/t5/CMS-Development/LeadFlow-Errors/m-p/381841
Any help would be appreciated.