meteor

Meteor Session is not defined

♀尐吖头ヾ 提交于 2019-12-18 04:35:13
问题 when I run my meteor project, this problem occurred: ReferenceError: Session is not defined at app/_components/talk/views/friends_list.coffee.js:1:16 at /home/xyz/web/edp/.meteor/local/build/server/server.js:298:12 at Array.forEach (native) at Function._.each._.forEach (/home/xyz/.meteorite/meteors/meteor/ meteor/9bb2b5447e845c4f483df5e9b42a2c1de5ab909b/ dev_bundle/lib/node_modules/underscore/underscore.js:78:11) here is my directory structure (I have changed the name of the files): ├──

What web browsers are supported by meteor web framework?

孤街浪徒 提交于 2019-12-18 04:33:15
问题 Specifically which versions of Internet Explorer browser are supported? 回答1: The core Meteor packages support IE6 and above. I fixed the out-of-date message in unsupported.html . 回答2: According to Meteorpedia, here are the supported browsers and their version : Android stock browser (Webkit based) Chrome Firefox 7+ iOS browser IE8+ Safari 4+ Desktop Opera Mobile Opera More info at : Meteorpedia - Supported Browsers. 回答3: Looks like anything above IE 5 if you view the source on browser support

curl: (48) An unknown option was passed in to libcurl

坚强是说给别人听的谎言 提交于 2019-12-18 04:30:10
问题 This is really frustrating. I keep getting this error when trying to run a standard curl command: curl --url https://install.meteor.com | sh curl: (48) An unknown option was passed in to libcurl Anyone know how to fix it? 回答1: I've just run into this problem myself. A bit of cursory research led me to this bug tracker entry, but updating didn't do the trick. I recently built the newest version of libcurl from source, though, so I figured it must be something to do with the directory structure

BABEL Note: The code generator has deoptimised the styling of “app.js” as it exceeds the max of "100KB in Meteor

倾然丶 夕夏残阳落幕 提交于 2019-12-18 04:29:21
问题 My app.js file in meteor has exceeded the limit of 100KB How do I fix this now? Does It affects my application? Is that because of installing packages? 回答1: This is not a real issue. Just a warning. When babel compiles some code, it try to offer a readable output, but when files become big (>100KB), babel considers (by default) that it's not useful to keep this option enabled (because yes it's an option, see https://stackoverflow.com/a/30879872/988941 for more information). It's not a problem

Meteor Collection Transform: is it done on the server or on the client? or it depends

孤街浪徒 提交于 2019-12-18 03:19:20
问题 I want to use transform to make a "virtual field" out of a collection. However, the new field I'm adding (within the transform function) is adding quite a bit of data to the returned document. This is fine if the transform is taking place inside the client. If it is done on server-side, then there will be bandwidth concerns. So I'm wondering if the transform is done on the server, or on the client, or it depends on how I find/fetch the document? 回答1: UPDATE : It's possible to do a transform

How can I place my Meteor apps version number in the UI?

若如初见. 提交于 2019-12-18 02:50:11
问题 I have a meteor application that has different branches for different clients. This is because clients want special things. Of course right? I would like to be able to place the git branch and tag/hash for the deployed version of the app for that client in the UI somewhere. The question is how? Is there a way in Meteor to get this information and simply use it? Thanks! 回答1: In my production apps I solved this issue in this way: Files App/.git/hooks/post.commit App/MeteorApp/hooks/post-commit

Ignoring files in a Meteor JS project directory

試著忘記壹切 提交于 2019-12-18 01:29:14
问题 I have a JavaScript based library I'd like to include in a Meteor JS application. The library source code is hosted in a Git repository and I'd like to include the repo as a submodule in my own source code repo for my Meteor app. However, I don't need a majority of the files included processed by Meteor, only a few select ones. Indeed Meteor barfs with "Error: Couldn't parse .. um .. some HTML file, on some line. sorry" when it sees many of the files in the submodule. Is there a way to

How to deploy meteor 0.6.0 + to heroku

跟風遠走 提交于 2019-12-18 01:18:27
问题 Im trying to deploy my meteor 0.6.3 app to heroku i tried using https://github.com/jordansissel/heroku-buildpack-meteor.git it only supports meteor 0.5.9 i also tried bundling my app in a .tgz file as suggested by the meteor docs but was not able to deploy I kept getting the no cedar app detected? 回答1: Use this, works like a charm. https://github.com/oortcloud/heroku-buildpack-meteorite 回答2: I had to do a bit of work to get Meteor 0.8.2 to deploy properly to Heroku. I'm posting the sequence

How to check for Route through route name in template with Meteor and Iron Router

南楼画角 提交于 2019-12-17 23:44:22
问题 What can I use in a template to figure out the route name that is associated with the route that I am currently on? For example if I configured a route like so in iron-router this.route('quick', { path: '/wow/:_id', template: 'create_question' }); So if I am on the route /wow/123 how can I get the router's name in my template, in this case how can I get quick in my template? I'm simply looking for a function, I am sure I can use a handlebars helper to get the rest done. I just need a function

Set the selected item in a select list based on template value

可紊 提交于 2019-12-17 23:35:03
问题 How can you correctly pre-populate a select control with the current value from the template? I have a simple form to edit a record where the values for the selected record are pre-populated when the form is shown. A bit like this: <input type="text" id="project_name_edit" value="{{selected_name}}"> But where I am using a select control I need to be able to interogate the template value and conditionally set the selected='selected' property for the correct option. <select id="project_status