Next.js 12 + adyen-web not working in IE11
See original GitHub issueDescribe the bug We are using this library together with Next.js 10/11 and it was working so far in IE11 (which we unfortunately have to support). Now after we upgraded Next.js to version 12, it doesn’t work anymore in IE11.
Upon calling the constructor - and it doesn’t matter if it’s done like this:
const checkout = await AdyenCheckout(configuration) // V5
… or like this:
const checkout = new AdyenCheckout(configuration) // V4
I get a crash which looks like this (see screenshots).
Here’s a sample project where this problem occurs: test-adyen-ts.zip.
If you need more details feel free to ask.
Expected behavior I would expect this library to work like in any other browser 🙂
Screenshots
Desktop (please complete the following information):
- Tested in Windows 10/IE11 (Browserstack)
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Importing adyen-web in next.js · Issue #902 - GitHub
hey, we are unable to include the adyen web-package in our next.js app, as the following error occurs as soon as we import...
Read more >nextjs ie11 Expected identifier - Stack Overflow
1 Answer 1 · add config.optimization.minimize = false; to you next.config. · run a production build · run it on the browser throwing...
Read more >Release notes - Adyen Docs
Learn about the latest updates to our API, and Drop-in/Components for web, iOS, ... Fixed the known issue from v5.25.0 where the Stored...
Read more >Browser support issues in Next.js - My blog
When I decided to use Next.js to build the website, I didn't think too much about the support of IE. So I was...
Read more >Adyen Web / Next.js - CodeSandbox
Activating extension 'vscode.typescript-language-features' failed: Could not find bundled tsserver.js.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, the new release solves the issue we were facing - thanks guys 👍🏻
@danielnehrig direct imports does not work in the current adyen-web version inside a server side environment. Good news is that it is fixed on #1384 , which will be part of the next release.
Regardless of that, the library still needs to be instantiated in a browser environment. On Next.js you can do that loading with no SSR
Related issue: #902