Closed mayrhueli closed 4 years ago
I'm encountering the same issue and I installed snippets, date_picker and time_picker
Chrome, Windows 10, nodeJS
var Calendar = require('tui-calendar'); require("tui-calendar/dist/tui-calendar.css");
C:\Users\Lyle Tingle\Documents\GitHub\SD-D-Project\node_modules\tui-calendar\dist\tui-calendar.js:16 })(window, function(WEBPACK_EXTERNAL_MODULE_tui_code_snippet, WEBPACK_EXTERNAL_MODULE_tui_date_picker) { ^
ReferenceError: window is not defined
at Object.
This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!
This issue will be closed due to inactivity. Thanks for your contribution!
Thanks!
https://reinaldoamaral.net/galeria/index.php/home/brasil-central https://reinaldoamaral.net/galeria/index.php/home/brasil-central
Em 11/04/2563 BE, à(s) 03:37, stale[bot] notifications@github.com escreveu:
Closed #525 https://github.com/nhn/tui.calendar/issues/525.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nhn/tui.calendar/issues/525#event-3223736568, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKFS5EI6RVPT6G327SOJAALRMAF4HANCNFSM4K5O446A.
Is there anyone who resolved the above issue? I am facing this issue in remix
@harshith-venkatesh
The calendar does not support SSR yet, so you need to handle browser-only codes by yourself. There's documentation about this issue in Remix.
https://remix.run/docs/en/v1/guides/constraints#browser-only-code-on-the-server
Hi Team, I found the solution for the above problem. Basically while @toast-ui/react-calendar package, we can name the file as
Thank you @adhrinae @DeRaowl for the help and support 👍
in Nextjs just use dynamic import and disable ssr like this:
import dynamic from 'next/dynamic' const Calendar = dynamic(() => import('../components/Calendar/Calendar'), { ssr: false, })
Version
Development Environment
Chrome, MacOS, NodeJs
Current Behavior
I tried to "include" the TUI calender into my WEB Project but is always throws the exception: windoe is not defined when I try to run the Example code
Exception: }) (window, function(WEBPACK_EXTERNAL_MODULE_tui_code_snippet, WEBPACK_EXTERNAL_MODULE_tui_date_picker) { ^
this is my first issue ever - so hope I gave enough information thanks