Tag: meteor

我在哪里可以在Meteor 1.3中安装npm包,以便其他npm库可以要求它

我正试图在meteor1.3testing版中build立起云计算,现在我要去做一个NPM软件包。 我遇到了一个更大的问题,其中一个包库中有一个声明crypto = require('crypto'); 这很好。 我刚刚通过npm安装了encryption包。 但客户仍然给我错误Uncaught Error: Cannot find module 'crypto' 。 … 有什么build议么? 请注意,这两个模块位于相同的node_modules目录中: node_modules crypto material-ui react react-cloudinary react-dom react-mounter react-tap-event-plugin 因为我正在导入npm库,所以这是一个Meteor 1.3的问题

meteortesting/部署iOS应用程序连接真正的服务器(不是本地主机)

我有一个meteor应用程序,我一直在iOS手机上testing。 我原先部署了应用程序(基于本指南 ): meteor install-sdk ios meteor add-platform ios meteor run ios meteor run ios-device 但是,这只是使用本地版本,托pipe在http://localhost:3000 。 所以我一直在阅读如何部署到一个特定的服务器 ,检查了一些 不同的指导网站的话题。 从这看来,我应该简单地运行以下,其中http://example.com是服务器位置: meteor run ios-device –mobile-server http://example.com 但是,该应用程序仍在本地服务器上运行。 在config.xml中,下面两行是彼此相邻的: <access origin="http://meteor.local/*"/> <access origin="*://example.com/*"/> 所以我试图删除<access origin="http://meteor.local/*"/> ,但没有解决它。 然后,我在一个名为mobile-config.js的文件中将以下内容添加到我的meteor项目的根目录中, App.info({ name: 'Example', description: 'An iOS app built with Meteor', version: '0.0.1', author: 'Me', website: 'http://example.com/' }); App.icons({ // […]

检查每个单词是否存在于数据库中

问题 我需要通过search每个单词的mongoDB集合来检查每个string是否拼写正确。 做最less量的数据库查询 每个句子的第一个单词必须是大写的,但这个单词在字典中可以是大写或小写。 所以我需要为每个单词区分大小写匹配。 只有每个句子的第一个单词应该是敏感的。 示例string This is a simple example. Example. This is another example. 字典结构 假设有一个像这样的字典集合 { word: 'this' }, { word: 'is' }, { word: 'a' }, { word: 'example' }, { word: 'Name' } 就我而言,这本字典中有10万字。 当然,名字以大写forms存储,动词以小写forms存储,等等。 预期结果 simple词和another词应该被认为是拼写错误的词,因为它们不存在于DB中。 在这种情况下,一个包含所有现有单词的数组应该是: ['This', 'is', 'a', 'example'] 。 This是大写字母,因为它是一个句子的第一个单词; 在DB中它是以小写的方式存储的。 我到目前为止的尝试(更新) const sentences = […]

meteor中钩子无功variables的变化值

我有 Template.templateName.onCreated(function() { this.variableName = new ReactiveVar; this.variableName.set(true); }); 并在templateName我有一个autoform 。 提交autoform时,我需要设置被动variablesvariableName为false 。 我努力了 AutoForm.hooks({ myForm: { onSuccess: function(operation, result) { this.variableName.set(false); }, } }); 但是this.以后它不起作用this. 没有像helpers和events那样引用template templateName 。 如果我使用会话,它会起作用,因为它们不限于/限于特定的模板。 我能做些什么来改变autoform钩子中的无功variables? 我也试过了 AutoForm.hooks({ myForm: { onSuccess: function(operation, result) { this.template.variableName.set(false); this.template.parent.variableName.set(false); this.template.parent().variableName.set(false); this.template.parentData.variableName.set(false); this.template.parentData().variableName.set(false); this.template.parentView.variableName.set(false); this.template.parentView().variableName.set(false); }, } }); 当使用console.log(this.template)它打印一个对象。 如果我使用console.log(this.template.data)我会得到 Object {id: "myForm", collection: […]

服务器错误在我的meteor应用程序?

您好,我目前使用Modulus.io主持我的meteor应用程序,但它不断崩溃。 这是我第一次做托pipe,所以我不能很好的阅读Log,有人能告诉我什么是错的吗? at /mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1191:22 at [object Object].<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1903:9) at [object Object].g (events.js:180:16) at [object Object].emit (events.js:98:17) at [object Object].Base.__executeAllServerSpecificErrorCallbacks (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/base.js:373:29) at Server.<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/repl_set/ha.js:469:10) at Server.g (events.js:180:16) at Server.emit (events.js:98:17) at [object Object].<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/server.js:567:84) at [object Object].emit (events.js:106:17) at [object Object].<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15) at [object Object].emit (events.js:98:17) at Socket.<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10) at Socket.emit (events.js:95:17) at net.js:441:14 npm ERR! […]

RangeError:数组缓冲区长度无效 – Meteor JS

我只是编码(meteorJS),当这个错误开始出现,我甚至不知道是什么造成的: buffer.js:25 const ui8 = new Uint8Array(size); ^ RangeError: Invalid array buffer length at new ArrayBuffer (native) at new Uint8Array (native) at createBuffer (buffer.js:25:17) at allocate (buffer.js:96:12) at new Buffer (buffer.js:56:12) at increaseBufferIfNecessary (C:\Users\admin\AppData\Local\.meteor\packages\meteor-tool\1.4.0-1\mtos.windows.x86_32\dev_bundle\lib\node_modules\stream-buffers\lib\writable_streambuffer.js:58:23) at [object Object]._write (C:\Users\admin\AppData\Local\.meteor\packages\meteor-tool\1.4.0-1\mtos.windows.x86_32\dev_bundle\lib\node_modules\streambuffers\lib\writable_streambuffer.js:65:5) at doWrite (_stream_writable.js:300:12) at writeOrBuffer (_stream_writable.js:286:5) at [object Object].Writable.write (_stream_writable.js:214:11) at Request.ondata (stream.js:31:26) at emitOne (events.js:82:20) at […]

在Nodejitsu上运行一个meteor应用程序

将meteor应用程序部署到Nodejitsu试用版环境,但未能使其运行。 从我的meteor应用程序目录执行jitsu deploy ,我得到以下错误: ReferenceError: Meteor is not defined 。 如果你已经在Nodejitsu上运行了一个meteor应用程序,请突出显示你所执行的步骤以及可能会丢失的依赖关系。 我会用你的build议,并尝试让我的应用程序运行。 谢谢。 // package.json contents { "name": "test123-meteor", "subdomain": "user123.test123-meteor", /* * Really not sure about this line here… */ "scripts": { "start": "node client/controllers/GeneralController.js" }, "version": "0.0.1-2", "engines": { "node": "0.8.x" } }

使用ClojureScript写入meteor

目前是否有将ClojureScript与Meteor集成的解决scheme? 我想要构build一个Meteor应用程序,并且在JavaScript(JavaScript,CoffeeScript,TypeScript,LiveScript和ClojureScript)的风格之间,我觉得ClojureScript是最好的。 我发现了其他JavaScript替代品的氛围/陨石包,但没有findClojureScript。 谢谢

什么是最有用的智能包Meteor.js

我开始学习meteor,发现了解几个智能包可以大大加快发展。 什么是最初有用的智能软件包? 像router , accounts-base , accounts-ui等…大气没有一个按人气sortingfunction。

meteorHeroku应用程序部署后崩溃

将应用程序部署到heroku后,我的应用程序无法启动。 我认为这可能是与构build包和最新版本的meteor0.9.x? 我应该从哪里开始debugging? 2014-09-02T05:02:58.848513+00:00 heroku[web.1]: State changed from crashed to starting 2014-09-02T05:03:05.407436+00:00 heroku[web.1]: Starting process with command `.meteor/heroku_build/bin/node .meteor/heroku_build/app/main.js` 2014-09-02T05:03:06.578829+00:00 app[web.1]: module.js:340 2014-09-02T05:03:06.579092+00:00 app[web.1]: throw err; 2014-09-02T05:03:06.586422+00:00 app[web.1]: at Function.Module._load (module.js:280:25) 2014-09-02T05:03:06.578419+00:00 app[web.1]: 2014-09-02T05:03:06.586423+00:00 app[web.1]: at Module.require (module.js:364:17) 2014-09-02T05:03:06.579105+00:00 app[web.1]: ^ 2014-09-02T05:03:06.586414+00:00 app[web.1]: Error: Cannot find module 'fibers' 2014-09-02T05:03:06.586426+00:00 app[web.1]: at require (module.js:380:17) 2014-09-02T05:03:06.586420+00:00 app[web.1]: […]