GithubHelp home page GithubHelp logo

Comments (12)

abhishekbatra avatar abhishekbatra commented on May 30, 2024

I get the same issue in one of my projects. But when I create a fresh project to test this issue in isolation, it works just fine. @aldeed Does this have something to do with library load order?

from meteor-autoform-bs-datetimepicker.

abhishekbatra avatar abhishekbatra commented on May 30, 2024

I compared packages, and it seems that these errors start appearing on adding the meteorhacks:npm package. @sturoid Do you have meteorhacks:npm installed in your project?

from meteor-autoform-bs-datetimepicker.

sturoid avatar sturoid commented on May 30, 2024

@abhishekbatra Thanks for the help. I don't have that package installed. These are the packages that I have:

meteor-platform
iron:router
zimme:iron-router-active
coffeescript
mquandalle:jade
stevezhu:sass
stevezhu:lodash
aldeed:template-extension
raix:handlebar-helpers
twbs:bootstrap
rajit:bootstrap3-datepicker
aldeed:autoform-bs-datepicker
accounts-password
ian:accounts-ui-bootstrap-3
aldeed:autoform
natestrauser:select2
aldeed:autoform-select2
zimme:select2-bootstrap3-css
ongoworks:security
aldeed:collection2
naxio:flash
dburles:collection-helpers
momentjs:moment
icambron:twix
u2622:persistent-session
alanning:roles

from meteor-autoform-bs-datetimepicker.

sturoid avatar sturoid commented on May 30, 2024

I removed some packages and it still has the same problem. This is now my packages file:

meteor-platform
iron:router
accounts-password
zimme:iron-router-active
coffeescript
mquandalle:jade
fourseven:scss
stevezhu:lodash
twbs:bootstrap
tsega:bootstrap3-datetimepicker
aldeed:autoform
aldeed:autoform-bs-datetimepicker
ian:accounts-ui-bootstrap-3
ongoworks:security
aldeed:collection2
dburles:collection-helpers
momentjs:moment
icambron:twix
u2622:persistent-session
alanning:roles

from meteor-autoform-bs-datetimepicker.

abhishekbatra avatar abhishekbatra commented on May 30, 2024

I fixed my issue! In my case, the jquery library was being loaded twice (through meteor-bower) resulting in the datetimepicker plugin being not available after initial loading. Check the source of your loaded view on the browser to see if jquery is included more than once.

from meteor-autoform-bs-datetimepicker.

vieko avatar vieko commented on May 30, 2024

+1 verified that jQuery is not loaded twice... help?

from meteor-autoform-bs-datetimepicker.

sturoid avatar sturoid commented on May 30, 2024

Yeah mine only loads jquery once as well. The problem is still there.

from meteor-autoform-bs-datetimepicker.

vieko avatar vieko commented on May 30, 2024

after searching around the web for similar circumstances, my best guess (amateur at best): is that this has something to do with load order... don't really know where to start a fix but may give it a try sometime this weekend.

Weirdest thing really... it works well on the online demo...

from meteor-autoform-bs-datetimepicker.

vieko avatar vieko commented on May 30, 2024

SOLVED! remove tsega:bootstrap3-datetimepicker and add it again specifying version 3.1.3 :) Found this under the autoform demo repo package file inside .meteor:

tsega:bootstrap3-datetimepicker@=3.1.3_3

from meteor-autoform-bs-datetimepicker.

sturoid avatar sturoid commented on May 30, 2024

@vieko You are seriously my hero. That is the only thing that has finally made it work. I will stick with that version for now.

from meteor-autoform-bs-datetimepicker.

aldeed avatar aldeed commented on May 30, 2024

Sorry, thought that was already mentioned in the readme. I updated the docs. This pkg hasn't been updated for new datetimepicker library version yet.

from meteor-autoform-bs-datetimepicker.

aldeed avatar aldeed commented on May 30, 2024

Closing all issues. The plugin was a proof of concept which others have forked and made better alternatives.

from meteor-autoform-bs-datetimepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.