We are importing both @bryntum/calendar and @bryntum/calendar-vue-3 NPM packages into our library of Vue components, where we create a wrapper component around the calendar component.
Our calendar wrapper - alongside our other components - is bundled using Vite, published as an NPM package, and then imported into a Nuxt 3 application.
The calendar works as expected in the consuming application, however when mounting any components that import from our library in a test environment (using Vitest), we get:
Error: The Bryntum Grid bundle was loaded multiple times by the application.
We have tried to optimise the bundled dependencies (as suggested here: viewtopic.php?p=109678&hilit=vite+bundle#p109678), and we have also tried to make both Bryntum packages peer dependencies of our library, rather than bundling them, neither of which helps.
I am happy to try create a minimal repro example if necessary, and/or provide source code.
Thanks