FAQ Database Discussion Community


Meteor: “ReferenceError: fs is not defined”

node.js,meteor,meteorite
Losing my mind with this one.. Getting "fs is not defined" on meteor when trying to read a file: var data = fs.readFileSync(filepathHidden); I have this package: cfs:filesystem 0.1.2 on Meteor 1.1.0.2 Funny thing here is that if I write in meteor shell fs it prints object and it seems...

Ternary operators in Meteor

meteor,ternary-operator,meteorite,spacebars
I am using Meteoris for working on my application. I have this scenario in forms. This is an edit view and I am just showing two of the 17 fields I have here: <label for="name" class="control-label">Name *</label> <input type="text" id="name" value="{{profile.name}}" placeholder="Name" class="form-control"> <label for="acctType" class="control-label">Account Type</label> <select id="acctType" placeholder="Name"...

Meteor.js Package: Npm.require cannot find module

meteor,meteorite,yelp
I'm getting an error in a package I've created called yelp-o-auth. I'm using Meteor version 0.8.3 The error is errorError: Cannot find module 'yelp' This is my code requiring it in yelp-o-auth.js var Yelp = Npm.require("yelp").createClient(auth); This is in package.js Npm.depends({ 'yelp': '0.1.1' }); When I run npm view yelp...

Error while attempting to add packages in Meteor

javascript,meteor,meteorite
So I am very new to Meteor, and I was sifting through some example apps and open source projects when I came across this simple chat application: (https://github.com/BenderV/simplechat) I wanted to download the project, run it on my local server, and mess around with the code to learn more about...

Customizing LoginButtons in meteor

javascript,meteor,meteorite,meteor-blaze,meteor-accounts
I am building a Login page in meteor. It has a facebook login button, gmail login button and linkedin login button. Then I have a Meteor's default login form. Everything is fine so far. The only challenge is, I need to put all these social networking login buttons below my...

Get back an already deployed meteor app

deployment,meteor,meteorite
I have this app I deployed a few months back on meteor servers, let's say it's accessible via : myapp.meteor.com Now I want to reverse the procedure and get back the code I deployed. (like doing a pull from myapp.meteor.com to my local machine) Is such thing possible ?...

Meteor - No login services configured

meteor,meteorite,meteor-accounts
I am following along with the Discover Meteor book and I am up to the part where we add accounts: I followed along and added the accounts-ui-bootstrap-dropdown and accounts-password packages, but when I click on the dropdown that appears in the navbar I get No login services configured. Any ideas...

Meteorite on windows 8.1 with vagrant ( cannot install packages )

meteor,vagrant,meteorite
I am very new to Linux ( does't even know the basic commands ) i am using https://gist.github.com/gabrieljenik/d926cbb90706d95abdee to setup vagrant on my windows 8.1 machine. i have created my test app and need to install packages like iron router etc. when i try to execute sudo npm install -g...