# Troubleshooting

> Fix a blank or unstyled scheduler, events that do not appear, times shifted by a time zone, ignored recurrence rules, watermarks and slow boards.

The scheduler never throws on bad data or options. It falls back to a default and logs a warning that starts with `[Birch UI Scheduler]`, so check the browser console first.

| Symptom | Jump to |
| --- | --- |
| Nothing renders, or the board is a thin strip | [The scheduler is blank](#the-scheduler-is-blank) |
| Bars and headers are unstyled | [The scheduler has no styles](#the-scheduler-has-no-styles) |
| An event is missing from the board | [An event does not appear](#an-event-does-not-appear) |
| `… events were skipped because they have no id…` | [Events are skipped](#events-are-skipped) |
| The board shows today or seven days instead of your range | [The visible range is wrong](#the-visible-range-is-wrong) |
| Events are shifted by a few hours | [Times are shifted](#times-are-shifted) |
| `… uses unsupported rrule parts…` | [A recurring event shows once or ignores part of its rule](#a-recurring-event-shows-once-or-ignores-part-of-its-rule) |
| A dragged event does not stay where it was dropped | [Changes are lost after a drag](#changes-are-lost-after-a-drag) |
| An option has no effect | [An option is ignored](#an-option-is-ignored) |
| "Birch UI Scheduler · unlicensed copy" in the corner | [A watermark appears](#a-watermark-appears) |
| `Refused to apply inline style` in the console | [A Content Security Policy blocks the styles](#a-content-security-policy-blocks-the-styles) |
| Two copies of a package, or a large bundle | [Duplicate packages and bundle size](#duplicate-packages-and-bundle-size) |
| Scrolling or dragging is slow | [The scheduler is slow](#the-scheduler-is-slow) |
| Problems only in React, Vue, Svelte or Angular | [Framework adapters](#framework-adapters) |

## The scheduler is blank

**Cause.** Without a `height` option, the scheduler root is `height: 100%` of its container. A container with no height collapses, so no resource rows are visible.

**Fix.** Pass `height`, as pixels or any CSS length, or give the container a height:

```ts
createScheduler(document.querySelector<HTMLElement>('#dispatch-board')!, {
  resources,
  events,
  start: '2026-12-07T06:00',
  end: '2026-12-07T20:00',
  height: 'calc(100vh - 120px)',
});
```

A scheduler created in a hidden tab re-measures through `ResizeObserver` when it becomes visible.

## The scheduler has no styles

**Cause.** With `injectStyles: false`, the scheduler does not add its stylesheet.

**Fix.** Import `@birchui/scheduler/styles.css`, or insert the exported `schedulerStyles` string into a shadow root yourself:

```ts title="main.ts"
import '@birchui/scheduler/styles.css';
```

See [Importing the CSS file](https://docs.birchui.com/getting-started/installation.md#importing-the-css-file).

## A Content Security Policy blocks the styles

**Cause.** Injected styles are a `<style>` element, which a `style-src` policy without `'unsafe-inline'` blocks. The injected element has no nonce option.

**Fix.** Set `injectStyles: false` and import `@birchui/scheduler/styles.css` through your bundler.

## An event does not appear

**Cause.** An event is drawn on the row of the resource whose `id` equals its `resourceId`, between the scheduler's `start` and `end`. An event is not shown when:

- its `resourceId` matches no resource, for example `'42'` against a numeric resource `id: 42` that your API later changed, or a typo such as `tech-lucía` against `tech-lucia`;
- it lies completely outside the visible range, for example a job on 14 December while `end` is `'2026-12-12'`.

An event whose `end` is before its `start` is drawn as a thin marker at its start, which is easy to miss.

**Fix.** Check the event with `scheduler.getEventById('job-4471')` and the row with `scheduler.getResourceById('tech-lucia')`. Move the view with `setRange(start, end)` or `scrollToDate(date)`; see [The visible range](https://docs.birchui.com/scheduler/view-presets.md#the-visible-range). Remember that `end` is exclusive.

## Events are skipped

**Cause.** An event without an `id`, or with a `start` or `end` that cannot be parsed, is skipped:

```text
[Birch UI Scheduler] 3 events were skipped because they have no id or an invalid start or end date
[Birch UI Scheduler] 2 events share an id with an earlier event; the later one was kept
```

**Fix.** Give every event a unique `id` and use ISO 8601 strings, `Date` objects or epoch milliseconds for dates. Strings such as `'Dec 7, 2026'` fall back to `Date.parse`. See [Invalid data](https://docs.birchui.com/scheduler/resources-and-events.md#invalid-data).

## The visible range is wrong

**Cause.** `start` and `end` are required. When `start` cannot be parsed, the scheduler logs `start is not a valid date; using today`. When `end` is missing, invalid or not after `start`, it logs `end must be a valid date after start; showing seven days`. A range with too many ticks for the preset logs `the visible range has too many ticks for this view preset and was shortened`.

**Fix.** Pass a valid `start` and a later `end`, and choose a coarser `viewPreset` for long ranges. See [Built-in presets](https://docs.birchui.com/scheduler/view-presets.md#built-in-presets).

## Times are shifted

**Cause.** Strings without an offset, such as `'2026-12-07T08:00'`, are wall-clock times in the scheduler's `timeZone`. Strings with `Z` or an offset, `Date` objects and numbers are instants, shown converted to that zone. Mixing a UTC timestamp from your server with a `timeZone` of `'America/Chicago'` moves the bar by the offset. An invalid zone logs `time zone "…" is not a valid IANA zone; using <browser zone>`.

**Fix.** Use an IANA name such as `'Europe/Berlin'`, and pick one form per field: local strings for site-clock times, instants for absolute times. Payloads such as `eventDrop` always carry `Date` objects; store them with `toISOString()`. See [How times are read](https://docs.birchui.com/scheduler/time-zones.md#how-times-are-read).

## A recurring event shows once or ignores part of its rule

**Cause.** A rule the scheduler cannot parse logs `event "…" has an invalid rrule (…); it is shown as a single event`. A rule with parts it does not support logs `event "…" uses unsupported rrule parts (…); they are ignored`.

**Fix.** Write the rule without the listed parts, or expand those occurrences on your server. See [Recurring events](https://docs.birchui.com/scheduler/recurrence.md).

## Changes are lost after a drag

**Cause.** The scheduler applies a move or resize to its own copy of the event and emits `eventDrop` or `eventResize`. If your code then passes a new `events` array built from stale data, for example on the next framework render, the old times come back.

**Fix.** Persist the change in the event listener and update your own state from the payload, so the next render sends the new times. Reject a move before it happens with `validateDrop`. See [Keeping a server in sync](https://docs.birchui.com/scheduler/resources-and-events.md#keeping-a-server-in-sync).

## An option is ignored

**Cause.** Invalid option values fall back to a default with a warning that names the option, for example `barMargin must be less than half of rowHeight; using 0` or `snap must be a number of minutes, 'tick' or false; using the view preset default`.

**Fix.** Correct the value named in the warning. The [API page](https://docs.birchui.com/scheduler/api.md#options) lists every option and its type.

## A watermark appears

**Cause.** The scheduler checks its key for `scheduler` offline. On a non-local host with no valid key, a watermark appears and one warning is logged, for example:

```text
[Birch UI] No license key is set for Birch UI Scheduler. All features keep working; a watermark is shown on non-local hosts until a valid license key is set. Purchase a license at https://birchui.com/pricing
```

A Grid Pro key reports `does not include Birch UI Scheduler`.

**Fix.** Call `setLicenseKey` from `@birchui/license` in the browser bundle, or pass `licenseKey` to `createScheduler`. With server rendering, expose the key through a public variable such as `NEXT_PUBLIC_BIRCHUI_LICENSE_KEY` and call `setLicenseKey` in client code; see [The license key is not applied with server rendering](https://docs.birchui.com/frameworks/troubleshooting.md#the-license-key-is-not-applied-with-server-rendering) and [What happens without a valid key](https://docs.birchui.com/getting-started/licensing.md#what-happens-without-a-valid-key).

## Duplicate packages and bundle size

**Cause.** The adapters import `@birchui/core`, and the scheduler checks keys through `@birchui/license`. Two installed versions of either package split their state, so a key set in one copy is not seen by the other.

**Fix.** Run `npm ls @birchui/core @birchui/license`, align all `@birchui/*` packages on one version and run `npm dedupe`, or add `overrides` in `package.json`. The package is side-effect free apart from its CSS; import the adapter from the `/scheduler` subpath, such as `@birchui/react/scheduler`, so grid code is not pulled in.

## The scheduler is slow

**Cause.** Rows and bars are virtualized, so slowness usually comes from what you pass in:

- a new `events` or `resources` array on every render, which replaces all data each time;
- an `eventRenderer` that builds large DOM trees or attaches listeners per bar;
- a range with very many narrow ticks, such as a year in `hourAndDay`.

**Fix.** Keep arrays stable and change single events with `addEvent`, `updateEvent` and `removeEvent`. Keep renderers small and listen to `eventClick` once instead of per bar. Use a coarser preset for long ranges.

## Framework adapters

The adapters at `@birchui/react/scheduler`, `@birchui/vue/scheduler`, `@birchui/svelte/scheduler` and `@birchui/solid/scheduler` follow the same rules as the grid adapters. See:

- [The widget is created twice in development](https://docs.birchui.com/frameworks/troubleshooting.md#the-widget-is-created-twice-in-development)
- [Changes to rows do not reach the widget](https://docs.birchui.com/frameworks/troubleshooting.md#changes-to-rows-do-not-reach-the-widget), which applies to `events` and `resources`
- [Vue makes large data slow](https://docs.birchui.com/frameworks/troubleshooting.md#vue-makes-large-data-slow) and [Svelte state makes large data slow](https://docs.birchui.com/frameworks/troubleshooting.md#svelte-state-makes-large-data-slow)
- [Angular views do not update after a widget event](https://docs.birchui.com/frameworks/troubleshooting.md#angular-views-do-not-update-after-a-widget-event)

## Related

- [API reference: @birchui/scheduler](https://docs.birchui.com/api/scheduler.md)
- [Scheduler in your framework](https://docs.birchui.com/frameworks/scheduler.md)
