meteor

meteor minified with production flag fails to load certain files

怎甘沉沦 提交于 2019-12-22 10:19:42
问题 I am not getting any errors from the server or the browser console but my application seems to break when i minify or use the --production flag. I have went back to a revision/changeset that i recall working with meteor deploy and it still fails. Has anyone else faced this problem ? I should mention, i just ran this with an older version of meteor and it works. Meteor version 0.7.0.1 looks like might be the problem? EDIT: Running 0.6.6.3 I ran meteor --release 0.6.6.3 --production to minify

How to make Grunt.js and Meteor.js work together?

让人想犯罪 __ 提交于 2019-12-22 10:17:14
问题 I want to use simple copying and concatenation in my Meteor application. But I faced the problem when Meteor runs all javascript files both on server and client whereas I don't want them to be run anywhere. It's either just config file like Gruntfile.js or partial JS files which I want to process somehow and then put inside client folder. Now, with Gruntfile.js file in the root of application I have this error when trying to launch meteor application: W20130826-14:44:39.921(3)? (STDERR) /home

'Meteor code must always run within a Fiber' error when using NPM package

≡放荡痞女 提交于 2019-12-22 10:15:41
问题 I'm using Meteor.require('npmPackage') to use a NPM package. However I seem to be getting an error when writing to mongo in npm package's callback function. Error: Error: Meteor code must always run within a Fiber. Try wrapping callbacks that you pass to non-Meteor libraries with Meteor.bindEnvironment. Code npmPackage.getInfo(function(err, data) { UserSession.insert({ key: 'info', value: data }); console.log(data); }); I tried wrapping the code within Fiber but the same error message is

MeteorJS template not showing data, not appearing

三世轮回 提交于 2019-12-22 09:58:14
问题 I originally thought my collection wasn't receiving data, but it turns out I just had a typo in my query. But my data still isn't appearing on the screen. The HTML template is pretty basic, here it is: <template name="messages" class=".messages"> {{#each showMessages}} <blockquote> <p>{{message}}</p> </blockquote> {{/each}} </template> It's supposed to just make the collection of messages appear when I call {{> messages}} Here's the client side JS that corresponds to it: Meteor.subscribe(

Since Meteor upgrade to 0.8.0, Template “rendered” callback is not fired when Session variable dependancy changes

天大地大妈咪最大 提交于 2019-12-22 09:56:26
问题 I'm stuck with a problem since I upgraded to 0.8.0. The Template rendered is not being fired anymore (except the first time). I followed the recommendations as in: https://github.com/avital/meteor-ui-new-rendered-callback/blob/master/new2/client/each.js This didn't helped, and so I finally made this small piece of code (by modifying the new2 example). The main difference is that the update is triggered by a Session variable change instead of a DB change. This perfectly shows the problem, as

Turn a meteor method returning a single object into a context for handlebar

馋奶兔 提交于 2019-12-22 09:40:07
问题 In the basic leaderboard example on meteor.com there is a method called selected_name. Template.leaderboard.selected_name = function () { var player = Players.findOne(Session.get("selected_player")); return player && player.name; }; {{#if selected_name}} <div class="details"> <div class="name">{{selected_name}}</div> <input type="button" class="inc" value="Give 5 points" /> </div> {{/if}} Instead I would like to return the entire player object and then have that object be treated as a context

“fence has already activated — too late to add writes”

拥有回忆 提交于 2019-12-22 09:38:34
问题 What does the following error message mean? fence has already activated -- too late to add writes Here's an example of how to get it: Environment : Mac OS X Lion Meteor 0.3.8 Project creation : meteor create test cd test meteor add coffeescript http mv test.js test.coffee meteor test.coffee : Records = new Meteor.Collection("records") if Meteor.is_client Meteor.startup -> Meteor.call "test" if Meteor.is_server Meteor.methods test: -> Meteor.http.get "http://www.meteor.com", -> Records.insert

Show current song information from html5 audio stream (in Meteor app)

女生的网名这么多〃 提交于 2019-12-22 09:22:21
问题 I'm working on an HTML5 radio player in Meteorjs. See http://radio.meteor.com/ or http://github.com/guaka/radio-meteor I want to display the song that's currently playing. How can I do that? I'm not sure if resorting to server side would be a great idea as the server would have to fetch metadata for a growing number of streams (I want to allow people to add more channels). Browsers compatibility is not that much of an issue, as long as it will work in Phonegap. I don't care about all browsers

Error: Cannot find module 'underscore' thrown in console for all Meteor commands

故事扮演 提交于 2019-12-22 09:16:05
问题 Error: Cannot find module 'underscore' thrown in console for all Meteor commands After every meteor or meteorite command such as meteor or mrt create myapp the following error is thrown. This error seemed to appear suddenly, as meteor was functional the night before and no changes have been made since. Austins-MacBook-Pro:Projects austinrivas$ mrt create test-app /Users/austinrivas/.meteor/tools/3cba50c44a/tools/meteor.js:1480 }).run(); ^ Error: Cannot find module 'underscore' at Function

Etablish DDP connection between Meteor Server and C app

半世苍凉 提交于 2019-12-22 08:48:07
问题 I'm developing a Meteor application with two client, one is in JavaScript and the other one is in C. I'm actually trying to connect my C app to the server using websocket. I'm using the library nopoll for the websocket (http://www.aspl.es/nopoll/html/index.html) and jansson for the JSON serialization (http://www.digip.org/jansson/). I read the DDP Specification (https://github.com/meteor/meteor/blob/devel/packages/ddp/DDP.md) and this brief (but good) explanation (https://meteorhacks.com