search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Server Side Rendered React throws `navigator is not defined`

Asked by Anonymous
29 days ago.

Running locally the scheduler works as expected but when deployed the schedulers breaks the application with the following log output:

2020-09-26T16:01:59.363622+00:00 app[web.1]: /app/build/static/node_modules/daypilot-pro-react/daypilot-react.min.js:9
2020-09-26T16:01:59.363623+00:00 app[web.1]: if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
2020-09-26T16:01:59.363623+00:00 app[web.1]: ^
2020-09-26T16:01:59.363733+00:00 app[web.1]: ReferenceError: navigator is not defined

The application I'm building is server-side rendered React:
React: 16.9.0

The scheduler code is taken straight from the DailyPilot UI builder page. I've attached the file to this question.

Answer posted by Dan Letecky [DayPilot]
27 days ago.

Unfortunately, server-side React rendering is not supported.

New Reply
This reply is
Your name (optional):