Skip to content
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

Uncaught TypeError when Opening Create View with DateTime Property #40

Open
mishogv opened this issue Aug 8, 2023 · 0 comments
Open

Comments

@mishogv
Copy link
Contributor

mishogv commented Aug 8, 2023

Overview

When attempting to open the Create view of an entity with a property of type DateTime, an uncaught TypeError is encountered. The error message indicates that $(...).flatpickr is not recognized as a function, and the error originates from the file ScheduledJobs/Create on line 119.

Steps to Reproduce:

Navigate to the Create view of the entity with a DateTime property.
Observe the browser console for error messages.

Expected Behavior:
The Create view should open without encountering any JavaScript errors related to flatpickr.

Actual Behavior:
An uncaught TypeError is thrown, preventing the proper functioning of the Create view due to the error with $(...).flatpickr.

Error Details:
Uncaught TypeError: $(...).flatpickr is not a function
https://aa.softuni.org/ScheduledJobs/Create

Probable Cause:
This error might be occurring due to missing or incorrect installation of the necessary flatpickr packages, including CSS and jQuery.

Proposed Solution:

Verify that the required flatpickr packages are correctly installed:
    Ensure the flatpickr JavaScript library is included and properly loaded.
    Confirm that the jQuery library is included and loaded before the flatpickr script.

Check the paths and references to the flatpickr and jQuery files in the project.
    Verify that the paths in the project files match the actual file locations.

Clear browser cache and refresh the page to ensure the latest scripts are being loaded.

Related Code:
The error is originating from the following file:

Additional Notes:
If the issue persists after verifying package installations and references, further investigation into the integration of flatpickr and jQuery within the project may be necessary. It's also recommended to consult the flatpickr documentation for any specific integration requirements or known issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant