A
A
Alexander Ivanov2021-03-17 12:16:10
React
Alexander Ivanov, 2021-03-17 12:16:10

How to solve the problem with "HTMLElement is not defined" on next?

From similar solution approaches tried this:
" https://dev.to/swyx/how-to-use-web-components-with... "
" https://nextjs.org/docs/advanced-features/dynamic -... "
" https://www.debugcn.com/en/article/5996534.html " I

include this library:
https://www.npmjs.com/package/@raiffeisen-ecom/pay...

import PaymentPageSdk from '@raiffeisen-ecom/payment-sdk'

  const paymentPage = new PaymentPageSdk(publicKey, {
    url: testURL
  }) // "HTMLElement is not defined"

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question