-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All the examples in "[...]/apps/calendar/examples/" are not working #1317
Comments
It seems that is missing the module import |
In order to run examples, You need to build the package first. In the
Then open the examples with browser or through static server like http-server. |
Closing because it's answered. |
Thank you for your reply. To avoid misunderstanding, I suggest to change the name of "calendar" folder, that seems a pre-compiled folder, to "{used-framework}-calendar", like the other two folder in the "apps" directory. So, in the "tui.calendar-main\tui.calendar-main\apps" folder, you will have:
Could be also useful, to add in the "Installation" docs, a chapter that explain how to run the examples. Thank you |
The And you gave us a fair point about running examples. I will consider that. |
I have just downloaded and did as suggested. get a rimraf error. results in added 1111 packages, changed 800 packages, and audited 2024 packages try again get error F:\tui.calendar-calendar-2.1.3\apps\calendar>npm run build
'concurrently' is not recognized as an internal or external command, npm ERR! Lifecycle script git a bit further after 5 attempts but gave up. [types] error TS2688: Cannot find type definition file for 'jest'. |
@toomanylogins ok. In the end I didn't compiled it, because I used the CDN libraries. If you need to do some local test, and you don't need to work on the JS libraries, you can always change the library reference in the html file, in all that rows where you see a reference to the "dist" folder, and it should start working. For example, in this case, you can change the reference at row 11 and row 51 and use the CDN library instead, like this: Row 11, from this: Row 51, from this: You can find the CDN reference here, see "Via Contents Delivery Network (CDN)" paragraph. |
Version
Version 2.1.3
Test Environment
Browser type: Firefox, OS: Windows 11
Current Behavior
I have downloaded the TUI Calendar zip code from the main branch, and I tried to run the examples, in the folder: "tui.calendar-main\tui.calendar-main\apps\calendar\examples", but all the examples are not working. The must common error returned in the console is:
Expected Behavior
Have working examples.
The text was updated successfully, but these errors were encountered: