Semantic-UI-Meteor
Semantic-UI-Meteor copied to clipboard
Not compatible with Meteor 1.7
Getting this error on Meteor 1.7.0.3. Downgrading to Meteor 1.6.1.3 solves the problem.
Template.languageSelector.onRendered(function() {
this.$('.ui.dropdown').dropdown({on: 'hover'})
})
TypeError: this.$(...).dropdown is not a function
at Blaze.TemplateInstance.
confirmed for radio checkboxes as well:
Template.CreateForm.onRendered(()=>{ this.$('.ui.radio.checkbox').checkbox(); });
Exception from Tracker afterFlush function: meteor.js:1010:11 TypeError: this.$(...).checkbox is not a function meteor.js:1010:11
I fixed this by including the following for dropdown:
import '../../client/lib/semantic-ui/definitions/modules/dropdown'; import '../../client/lib/semantic-ui/definitions/modules/transition';
@anjunatic are you still using eager file loading outside of imports folder or switched to package.json entry point options?
@vbelolapotkov I use ES6 modules & imports folder for my own files, but semantic UI is located in client folder
@anjunatic if you start a meteor 1.7 project from scratch it will create meteor section in you package.json which disables default loading order from your client folder => you have to import your client folder manually. If you want to stick with the old loading behavior just remove meteor section from your package.json and it will load semantic ui.
Anyways, as this package is falling behind the original npm package updates I switched from atmosphere package to npm in the following way:
- build js, css, assets from npm package with gulp (in a separate directory)
- add compiled files via local package