I’m building a custom Modern UI screen that uses the Bryntum Calendar component uses. The screen is a view-only month calendar.
Error when publishing the customization
Module not found: Error: Can't resolve '@bryntum/calendar' in …
TS2307: Cannot find module '@bryntum/calendar' or its corresponding type declarations.package-lock.json shows that @bryntum/calendar is linked locally, not downloaded from npm:
"node_modules/@bryntum/calendar": {
"resolved": "node_modules/ext-packages/bryntum-calendar",
"link": true
},
"client-controls": {
"version": "file:..\\dist\\packages\\client-controls.tgz",
"requires": {
"@bryntum/calendar": "file:../ext-packages/bryntum-calendar"
}
}
Can’t resolve ‘@bryntum/calendar’ when building a Modern UI customization screen (2025 R2)
Best answer by khattakdev
Hi, Arsalan from Bryntum here.
Your lock file shows @bryntum/calendar pointing to a local folder (ext-packages/bryntum-calendar). If that folder is missing or empty on the machine running the build, you get exactly this error.
Since 8.0, our packages are on public npm and split by license tier. Install the Calendar with:
npm install @bryntum/calendar-enterprise
Then update your imports from @bryntum/calendar to @bryntum/calendar-enterprise.
Do you have a Bryntum Calendar license? If not, the package runs as a 14-day free trial out of the box. After that, you can download a 45-day trial key from bryntum.com/download. If you already have a license, add your license key to the app.
Let me know if the build still fails after that and I'll take a look.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.