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

Asked by KS Tan
2 years 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?

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