Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Component not working with NextJS #71

Closed
1 task done
mbillz opened this issue Feb 5, 2021 · 2 comments
Closed
1 task done

React Component not working with NextJS #71

mbillz opened this issue Feb 5, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@mbillz
Copy link

mbillz commented Feb 5, 2021

Describe the bug

I'm getting an import error when using the Google Pay React component with any NextJS projects. I've tried with both a fresh project as well as my company's web project.

To Reproduce

  1. Setup blank Typescript enabled NextJS project (npx create-next-app, rename file to pages/index.tsx and install necessary dependencies when prompted).
  2. npm install Google Pay React Button and include on page
  3. See error thrown

Expected behavior

Expect Google Pay Button to render

Screenshots

Screen Shot 2021-02-05 at 3 22 18 PM

Component information:

  • Component
    • React component (@google-pay/button-react)
  • Component version 2.1.5

Environment:

  • Device: MacBook Pro 15-inch, 2019
  • OS: Mac OS 10.15.7
  • Browser: Chrome 88.0.4324.146
  • Country/region: US
@mbillz mbillz added the bug Something isn't working label Feb 5, 2021
socsieng pushed a commit to socsieng/google-pay-button that referenced this issue Feb 6, 2021
@socsieng socsieng reopened this Feb 6, 2021
@socsieng
Copy link
Collaborator

socsieng commented Feb 6, 2021

Should be fixed in v2.2.0.

Release is pending some additional checks.

@socsieng
Copy link
Collaborator

socsieng commented Feb 6, 2021

v2.2.0 released to npm.

@socsieng socsieng closed this as completed Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants