Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REACT] _a.features may be undefined #6816

Closed
ExtAnimal opened this issue May 21, 2023 · 0 comments
Closed

[REACT] _a.features may be undefined #6816

ExtAnimal opened this issue May 21, 2023 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@ExtAnimal
Copy link

Forum post

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.

@ExtAnimal ExtAnimal added bug Something isn't working resolved Fixed but not yet released (available in the nightly builds) forum Issues from forum large-account Reported by large customer labels May 21, 2023
@ExtAnimal ExtAnimal added this to the 5.3.6 milestone May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

2 participants