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

Problem while adding the moment timezone and timzone picker #47

Open
shahabes opened this issue Nov 7, 2022 · 0 comments
Open

Problem while adding the moment timezone and timzone picker #47

shahabes opened this issue Nov 7, 2022 · 0 comments

Comments

@shahabes
Copy link

shahabes commented Nov 7, 2022

Hello, I have a problem adding the following libraries:

  • moment-timezone.min.js
  • timezone-picker.min.js

I'm adding the libraries like the following:

    <script type="text/javascript" src="{{ asset('js/timezonepicker/moment-timezone/builds/moment-timezone.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('js/timezonepicker/timezone-picker/dist/timezone-picker.min.js') }}">

I ensured that these files were defined correctly and could be accessed by the web page.
I have the following errors in my source code. Please help me to solve them.

Uncaught TypeError: i is undefined
[moment-timezone.min.js:1:207](moment-timezone/builds/moment-timezone.min.js)

Uncaught TypeError: e is undefined
    value timezone-picker.min.js:17
    n timezone-picker.min.js:17
[timezone-picker.min.js:17:1166](timezone-picker/dist/timezone-picker.min.js)

I also added jquery to my laravel app.js and it's imported at the beginning of the page.

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