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 have a project using Next v11 and used next-transpile-module with this configuration to account for @square/web-sdk being ESM. I'm not sure if Next v12 handles it differently.
// next.config.jsconstwithTM=require('next-transpile-modules')(['@square/web-sdk']);module.exports=withTM({// more config})
Describe the bug
Installed the latest version
^2.0.0
installed via Node 16.7.0 in a NextJS project and get this error when importing:Import statement:
import { payments } from "@square/web-sdk";
Error:
To Reproduce
Steps to reproduce the behavior:
{ payments }
Expected behavior
I would like to be able to use this package to build the Payment Forms and Buttons
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: