Skip to content

Runtime TypeError with CoreProvider context in Next.js 16 #3716

@LouisJackson

Description

@LouisJackson

Describe the bug
Runtime TypeError: "null is not an object (evaluating 't.context')" after library upgrade from 6.25 to 6.26 in Next.js project using Adyen Dropin. The error occurs in the CoreProvider component and appears to be related to React Context initialization.

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade Adyen Web library to version that includes PR UIlement: Move CoreProvider to UIElement #3669 (UIElement: Move CoreProvider to UIElement)
  2. Use Adyen Dropin component in Next.js 16 app router
  3. Component fails to render with context error
  4. See error in browser console and call stack shows preact/hooks and CoreProvider.tsx

Expected behavior
Adyen Dropin component should render normally after library upgrade without context-related errors, maintaining the same functionality as before the upgrade.

Screenshots
Image

Desktop:

  • OS: macOS
  • Browser: Safari
  • Version: 26.2

Additional context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions