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

Cannot set property document of #<Window> which has only a getter in Nuxt

Asked by KS Tan
3 months ago.

I’m using nuxt 3 which is running vue3, try to implement daypilot and notice that it not compatible. Below is the sample source code:

<template>
    <DayPilotCalendar id="dp" :config="config"/>
  </template>
  
  <script lang="ts" setup>
  import {DayPilotCalendar} from '@daypilot/daypilot-lite-vue'
  const config = {
    viewType: "Week"
  }
  </script>

This issue happen at both SSR=true/false.

I’d attach console error too

So far any ideal?

Answer posted by Dan Letecky [DayPilot]
3 months ago.

This issue should be fixed now in the latest release (version 2024.1.519/3.20.1):

https://javascript.daypilot.org/daypilot-lite-for-javascript-2024-1-519/

Please let me know if the problem persists.

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