Hey, I'm trying out Bryntum Scheduler. I have an app where we already have a data store (redux) setup, so I don't want to use Bryntum's transport
system. I just want to bind the data I already have a Bryntum Instance. Here's the code I'm trying to run for now:
import './App.css'
import { BryntumSchedulerPro } from '@bryntum/schedulerpro-react'
import '@bryntum/schedulerpro/schedulerpro.classic-dark.css'
function App() {
return (
<BryntumSchedulerPro
startDate="2023-05-01"
endDate="2023-05-31"
height={300}
viewPreset="weekAndDay"
columns={[
{ type: "resourceInfo", text: "Name", field: "name", width: 150 },
]}
events={[
{
id: 1,
name: "Event 1",
startDate: "2023-05-01",
endDate: "2023-05-03",
},
{
id: 2,
name: "Event 2",
startDate: "2023-05-02",
endDate: "2023-05-05",
}
]}
resources={[
{ id: 1, name: "Resource 1" },
]}
assignments={[
{ id: 1, resourceId: 1, eventId: 1 },
]}
/>
);
}
export default App
It's nothing fancy, I just want to get this barebones version running. But it gives me the following error in browser console:
Uncaught TypeError: _a.features is undefined
processEventContent WrapperHelper.tsx:611
callback schedulerpro.module.js:53
insertTextNode schedulerpro.module.js:10
syncChildren schedulerpro.module.js:10
performSync schedulerpro.module.js:10
insertElement schedulerpro.module.js:10
syncChildren schedulerpro.module.js:10
performSync schedulerpro.module.js:10
insertElement schedulerpro.module.js:10
WrapperHelper.tsx:611:72
I only get this error when I add the relationship between events and resources. So without the assignments
defined, I can see just the resource (still no event). But if I add the relationship between event and resource by either adding the assignments or by adding a resourceId
to the event object, it gives me this error.
I'm using Vite as my bundler but I feel like that shouldn't be the issue.