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
4 years 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
daily-pro-react: https://npm.daypilot.org/daypilot-pro-react/trial/2020.3.4610.tar.gz

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]
4 years ago.

Unfortunately, server-side React rendering is not supported.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.