meteor

Meteor mup error fbjs invariant

馋奶兔 提交于 2019-12-24 08:29:39
问题 I am using mup for deployment and everything goes great until I add the reactrouter:react-router-ssr meteor package. I can run it locally, but I get the following error when I deploy: -----------------------------------STDERR----------------------------------- pproximately three times slower than the native implementation. In order to use the native implementation instead, run meteor npm install --save bcrypt in the root directory of your application. /bundle/bundle/programs/server/node

Group and display data

萝らか妹 提交于 2019-12-24 08:28:49
问题 Here is my data data = [ { category : "Cat1"}, { category : "Cat2"}, { category : "Cat3"}, { category : "Cat4"}, { category : "Cat5"}, { category : "Cat6"}] Let suppose i have it in a collection named myData What i want is to group and display my data in group of 2. Then i display it in a navbar (in a dropdown in fact) like this <ul> {{#each group}} <li class="col-md-2"> <ul> {{#each categories}} <li>{{category}}</li> {{/each}} </ul> {{/each}} <ul> What i am asking is how to group the data in

Meteor errors internationalization

我的未来我决定 提交于 2019-12-24 08:18:31
问题 I'm trying to implement internationalization through just-i18n and it works fine so far. Problem is I'm also using accounts-password and especially Meteor.loginWithPassword(user, password, [callback]). On login error, the callback has an error object that basically looks like this : { details: undefined, error: 403, errorType: "Meteor.Error", message: "User not found [403]", reason: "User not found" } I thought the error code was unique and went with a i18n configuration file like this : i18n

Alerts are inserted but not showing up

廉价感情. 提交于 2019-12-24 08:05:07
问题 Im working on a unread counter for messages and have alert collection and messages collection. Issue now is console log shows alerts are attached to messsage, however the counter does not show up. Typing Alerts.find().count(); in console3e gives 0. template counter + click to clear alerts //helper alertCount: function(){ return Alerts.find({ userId: Meteor.userId(), read: false }).count(); } //event 'click .enterRoom': function() { Meteor.call('markAlertsAsRead', { roomId: this._id }); }

Getting empty directory after running meteor mongo dump command

核能气质少年 提交于 2019-12-24 08:00:29
问题 I am trying to take dump of my mongo DB. As i am using meteor so i used the meteor command for taking dump i.e:- mongodump -h 127.0.0.1 --port 3001 -d meteor I also try to save the dump in a different location i.e:- mongodump -h 127.0.0.1 --port 3001 -d meteor --out /home/parveen/Desktop/ But both time it will create a directory with name meteor and that directory is blank. I am just wondering to know why this is happening because i tried the same command few months before that time i got the

Are non-reactive Meteor db subscriptions possible?

不问归期 提交于 2019-12-24 07:32:37
问题 I have documents from a server-side collection published. However, I don't need reactivity on the client side. For performance reasons, I'd like to just query the db manually from the client like in a traditional web app. One option is subscribing and then stoping the subscription. // something like this: var People = new Meteor.Collection('people'); var handle = Meteor.subscribe('people'); // assume people is published on server var results = People.find().fetch() handle.stop(); However,

Are non-reactive Meteor db subscriptions possible?

梦想的初衷 提交于 2019-12-24 07:32:34
问题 I have documents from a server-side collection published. However, I don't need reactivity on the client side. For performance reasons, I'd like to just query the db manually from the client like in a traditional web app. One option is subscribing and then stoping the subscription. // something like this: var People = new Meteor.Collection('people'); var handle = Meteor.subscribe('people'); // assume people is published on server var results = People.find().fetch() handle.stop(); However,

How to get the index in meteor in each

时光毁灭记忆、已成空白 提交于 2019-12-24 07:03:38
问题 How to get the each loop index in meteor.@index is not working.Please help me. Template.apichange.helpers({ api_rest_data: function () { return Session.get("api_rest_list"); } }); {{#each api_rest_data}} <tr> <td><select id="methodname"> <option id="optn" value="{{ method_name }}"> {{ @index }} </option></select></td> </tr> {{/each}} 回答1: It requires another helper, check out my solution that I have used in my book on Meteor: Template.registerHelper('withIndex', function (list) { var

Meteor-React Error: Target Container is not a DOM element

元气小坏坏 提交于 2019-12-24 06:23:19
问题 I'm doing this tutorial on Meteor1.4 with React and i'm getting this error: Uncaught Error: _registerComponent(...): Target container is not a DOM element.(…) I have looked at this similar answer, but this being Meteor i can't tell why it's happening. main.html <head> <title>React Meteor Voting</title> </head> <body> <div class="render-target"></div> </body> main.js import React, { Component } from 'react'; import {Meteor} from 'meteor/meteor'; import { render } from 'react-dom'; Meteor

Meteor-React Error: Target Container is not a DOM element

徘徊边缘 提交于 2019-12-24 06:22:07
问题 I'm doing this tutorial on Meteor1.4 with React and i'm getting this error: Uncaught Error: _registerComponent(...): Target container is not a DOM element.(…) I have looked at this similar answer, but this being Meteor i can't tell why it's happening. main.html <head> <title>React Meteor Voting</title> </head> <body> <div class="render-target"></div> </body> main.js import React, { Component } from 'react'; import {Meteor} from 'meteor/meteor'; import { render } from 'react-dom'; Meteor