Hi there,
I'm trying to integrate a basic instance of the Bryntum Gantt component into an existing Next.js project, currently using Next 15.1.2. However, I'm encountering the following error whenever I attempt to render the Gantt component:
Error: Cannot find module '...node_modules/@bryntum/gantt-react/lib/BryntumFullscreenButton'
imported from '...node_modules/@bryntum/gantt-react/lib/index.js'
From what I can tell, the module BryntumFullscreenButton is either missing or not correctly exported in the @bryntum/gantt-react package.
I'm using the official Bryntum Gantt React wrapper and following the standard usage examples. This is blocking me from even rendering a minimal Gantt chart in the app. I’ve double-checked the installation and made sure all dependencies are correctly installed.
Setup:
Next.js version: 15.1.2
React version: 18.2.0
Bryntum Gantt: @bryntum/gantt-react (latest)
OS: Windows
I’d appreciate any help on:
Whether this is a known issue with the module resolution in the React wrapper?
Is there a workaround to disable/remove the FullscreenButton reference if it’s optional?
Any advice for integrating Bryntum Gantt in modern Next.js apps?
Thanks in advance!