You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this library in Next.JS 14's API route handler, and the polyfill is causing an issue where it would completely crash the application with the error:
TypeError: Cannot destructure property 'protocol' of 'window.location' as it is undefined. at getLocationOrigin
I can comment out the polyfill and things will work. Is there a way to automatically detect if the package is being used in NextJS and do not perform the polyfill?
The text was updated successfully, but these errors were encountered:
I'm using this library in Next.JS 14's API route handler, and the polyfill is causing an issue where it would completely crash the application with the error:
TypeError: Cannot destructure property 'protocol' of 'window.location' as it is undefined. at getLocationOrigin
I can comment out the polyfill and things will work. Is there a way to automatically detect if the package is being used in NextJS and do not perform the polyfill?
The text was updated successfully, but these errors were encountered: