devkinoti
Joined 1/29/2020
devkinoti said almost 3 years ago on FullCalendar with StimulusJS :
Hey Im currently getting this error. I'm at the  05:21min in the tutorial

application.js:267 Error connecting controller

TypeError: Cannot read property '__k' of undefined
    at S (preact.module.js:343)
    at DelayedRunner.Calendar._this.handleRenderRequest [as drainedOption] (main.js:46)
    at DelayedRunner.drained (main.js:8347)
    at DelayedRunner.tryDrain (main.js:8325)
    at DelayedRunner.request (main.js:8274)
    at Calendar.render (main.js:103)
    at extended.connect (calendar_controller.js:20)
    at Context.connect (context.js:24)
    at Module.connectContextForScope (module.js:37)
    at Router.scopeConnected (router.js:112)

How do I fix this?

devkinoti said almost 3 years ago on FullCalendar with StimulusJS :
Hey David,  I'm using v5.8.0.

Found the solution within their git repository closed issues: https://github.com/fullcalendar/fullcalendar/issues/5621
Ideally the error is tied to whether you have a valid DOM object or not.

A simple typo triggers it.

The TypeError: Cannot read property '__k' of undefined is a slightly misleading/unclear error message.

devkinoti said almost 3 years ago on FullCalendar with StimulusJS :
Hey, is there a way of fixing/debugging why events dont display on the calendar?

I've bumped up the version of fullcalendar to v5.9.0 but still not displaying any events.

devkinoti said almost 3 years ago on FullCalendar with StimulusJS :
My setup
rails 6.1.4


package.json
  "dependencies": {
    "@fullcalendar/core": "^5.9.0",
    "@fullcalendar/daygrid": "^5.9.0",
    "@fullcalendar/interaction": "^5.9.0",
    "@fullcalendar/timegrid": "^5.9.0",
    "@rails/actioncable": "^6.0.0",
    "@rails/activestorage": "^6.0.0",
    "@rails/ujs": "^6.0.0",
    "@rails/webpacker": "5.4.0",
    "moment": "^2.29.1",
    "preact": "^10.5.14",
    "stimulus": "^2.0.0",
    "turbolinks": "^5.2.0",
    "webpack": "^4.46.0",
    "webpack-cli": "^3.3.12"
  },
  "version": "0.1.0",
  "devDependencies": {
    "webpack-dev-server": "^3.11.2"
  }



devkinoti said almost 3 years ago on FullCalendar with StimulusJS :
start_date = params[:start]
end_date = params[:end]

These two params are nil