Questions tagged [meteor]

Meteor is a modular platform for developing web and mobile applications in JavaScript based on the NodeJS platform.

0
votes
1answer
19 views

How can I add Google Tag Manager id to Meteor app?

I'm using okgrow analytics package to inject a Google Analytics tag into my Meteor app. But that package doesn't offer support for Google Tag Manager. Does anyone know how to inject a GTM script into ...
4
votes
1answer
54 views

How to update div in Meteor without helper?

I can I update a div using JavaScript with no problem. For example, the initial values for both divs are shown on the image on the left, and the values after clicking on the test button are shown on ...
0
votes
1answer
29 views

Validate mongo ObjectId in meteor client

How can I validate whether given string is valid Mongo ObectId at client side in meteor? I have only UTF-8 string. I want to know whether passed argument e.g. from url is a valid ID. Thanks.
1
vote
1answer
21 views

Date format for sitemap

I'm using gadicohen:sitemaps with Meteor to create my sitemaps and I'm not sure how to set the lastmod date field. The documents state not to use new Date(), so what date format should I use. { page:...
0
votes
0answers
18 views

Meteor/Cordova - Source path does not exist when building for iOS

I'm trying to add splash screens using the one-size-fits-all approach to adding assets: But I'm getting this error: Anyone know what's going on here? Thanks
1
vote
1answer
32 views

What is reason of minimongo in meteor

What is actual reason and how should be minimongo used in meteor? For security, client shouldn't have access to queries. So they should be kept only on server. Therefore on client should not be ...
0
votes
0answers
30 views

Update ROOT_URL on production server after blue green deployment

We are using cf-blue-green-deploy plugin to deploy our app on our cloudfoundry production server to have zero downtime. The deployment works well but when the script renames the *-new application to ...
0
votes
1answer
29 views

Restarting app completely in order to refresh packages in Cordova with Meteor

I'm looking to restart the app completely from the app itself( really restart the app(full load) and not just rerender the index). This needs to happen because some packages also need to re-...
2
votes
0answers
32 views

Meteor pub sub same collection different projection

i have been working in a project recently with Meteor and React, and i have some issues with Meteor publish and subscribe. Here is the example code: this is the first publication that i have and ...
0
votes
1answer
21 views

React/Meteor - call this.setState inside an Autoform hook

I'd like to modify the state of a React component when a Meteor autoform is submitted. My code is below. I know it has something to do with scope, but I've fiddled around with where and how I call ...
0
votes
0answers
36 views

Meteor 1.7 bundler is broken

I am trying to deploy an app that has been upgraded to meteor 1.7 using the setup for passenger outlined at puhsionpasserger.com, however when I try and access the app I get an error in the console of ...
2
votes
0answers
53 views

encryption with tripleDes in meteor

I have a code in Asp.net that encrypts a string with TripleDES algorithm in EBC mode and other settings. and uses a key which is encrypted using Base64. I have to write this code in meteor (javascript)...
1
vote
1answer
58 views

GraphQL Query Syntax

So I'm trying to access a specific document in my database via GraphQL query inside my Meteor app. I parse the document ID from my url, and I'm trying to create a gql query to get that document, ...
0
votes
1answer
21 views

How to implement a Meteor Tracker enabled feature?

I am writing a module supporting Meteor Tracker, but I am unable to test it. I added meteor-standalone-tracker as dev dependency, and wrote a test case, but the autorun function is called only once. ...
1
vote
1answer
38 views

Running a simple js file on local meteor server

Currently when we want to clear data, for example when the data structure changes, we currently uncomment a call to the following function on start up. let clearAllUserResponses = function() { if (!...
0
votes
1answer
29 views

Meteor and VSCode: Rebuild after unsaved changes

here's something that has been bugging me for some time: On a Linux system (Linux Mint) I am developing a Meteor application with VSCode. And it's working quite well. I find the integrated terminal ...
-1
votes
1answer
31 views

Production Database Cloning for Staging Server

I have my production Database filled with live data from sensor. I need a way that can clone/replicate the data in another database where I can use for staging as sometimes I need to feed it test ...
2
votes
1answer
176 views

Meteor import error: createApolloServer is not a function

So I'm attempting to get an Apollo server working with an existing Meteor project. In my project directory, I ran meteor add apollo meteor npm install --save apollo-client graphql-server-express ...
0
votes
0answers
23 views

Strange CSS bug in Meteor app which doesn't let the styles render properly

In my Meteor 1.6.0.4 app, css styles don't render properly as they render with static HTML files. The strange thing is that when I make any change in the CSS file while the app is running on ...
0
votes
0answers
69 views

Project upgraded to Meteor 1.7.0.5 won't start

Reading https://blog.meteor.com/meteor-1-7-and-the-evergreen-dream-a8c1270b0901 and upgrading meteor, my project now won't start. I think it's related to some issues between ecmascript and babel. I'...
1
vote
1answer
21 views

return object value from helper (meteor)

I have a helper function which takes in a parameter and returns an object. objectReturnHelper: function(param1) { var obj1 = collectionName.findOne(param1).count1; var obj2 = collectionName....
0
votes
2answers
29 views

Can't connect to a mongodb if it is secure

I'm trying to connect my app to MongoDB using MONGO_URL: in MUP. The database is on an independent VPS. The VPS is behind a firewall and is connected to the app VPS via a private network. If I don't ...
0
votes
1answer
29 views

Meteor Reactjs owl Carousel

This is my main component that i am render av from the mini mongo db. My current issue is when I send this.props.av into the carousel it does not load. I did notice that the props is only visible ...
1
vote
0answers
39 views

How to scale the app locally using cluster package in meteor?

I want to scale my application using cluster package of meteor . I have used these two commands in the terminal. CLUSTER_DISCOVERY_URL=mongodb://mongo-url CLUSTER_SERVICE=web CLUSTER_ENDPOINT_URL=...
0
votes
2answers
25 views

meteor collection hooks updating element on a position in array

i have this object: card: { customFields [ { id, value }, {id , value } ... ] } A customFields array is inside cards, which contans elements consisting of an id and a value. Now i want to update a ...
1
vote
1answer
36 views

Meteor make one user to read and update all docs

I have written a publish function that gets the current userId and finds all docs related to that user. Now all users can only have access to read, update and delete what they created. I want to add ...
0
votes
1answer
38 views

Meteor server crashes very frequently without any error

I am working with the Meteor application and I deployed the same over EC2 instance. It was working fine till a few days back. But now the server process kill automatically without any error log or ...
0
votes
1answer
33 views

PM2 with Meteor giving error while deploying

I am using the "pm2-meteor" module for using PM2 in my Meteor Application. [Using PM2 First time] I go through with doc given in pm2-meteor i.e:- https://www.npmjs.com/package/pm2-meteor and ...
0
votes
0answers
40 views

How to have many app with one Meteor backend?

I would like to have many mobile app with only one Meteor backend (not only one server) and have some switches inside client code to enable or disable some functionalities. Until Reloader overwrite ...
0
votes
1answer
37 views

How to apply Node.js secuirty updates?

How to apply node.js security patches? Is there a specific process to apply security patches when using meteor js on ubuntu 16.04?
0
votes
1answer
32 views

Subscription Data Arrives Very Late Meteor - React Native Meteor

After publishing data and subscribing from react native client,it takes about a minute to make subscribtion ready.If i update collection it takes again about a minute to get data and fire ...
0
votes
0answers
62 views

Meteor version1.7.0.5 error - cannot fine module '../lib/utils.js' after updating app to latest version

meteor version - 1.9.2 Update my meteor app to verison 1.7.0.5 , backend is running fine but getting below error in frontend.
1
vote
2answers
39 views

Using Meteor with cordova.plugins.diagnostic not Work

I'm using [email protected] with following Plugins: cordova:cordova-plugin-backbutton 0.3.0 cordova:cordova-plugin-camera 2.1.1 cordova:cordova-plugin-device 1.1.4 cordova:...
1
vote
0answers
21 views

Test VPS with terminal

I'm trying to deploy my meteor application using MUP and I'm having trouble connecting to the separate VPS running my MongoDB. The MONGO_URL is wrong. Is there a way to test my connection via terminal ...
0
votes
0answers
11 views

Heroku schedular not able to access my app over https

I have my website installed in heroku. I also have one scheduler which would run every 1 day. It used to work over http. Recently i changed my website to make sure even http requests are redirected to ...
1
vote
1answer
108 views

Deploy Meteor app to Synology armv7: There is an issue with `node-fibers`

I've spent a couple of days trying to run a build app from Meteor on my Synology ds213j (Armv7, 512MB ram). I keep encountering the following error ## There is an issue with `node-fibers` ## `/...
0
votes
1answer
37 views

How to download images from AWS into a folder in meteor

The following code works. But it only downloads one image. I want it to download several images and if not too much trouble to put them in a folder, maybe a zip folder. It will not download more than ...
1
vote
0answers
36 views

Meteor: Where exactly (full path) are ostrio:files images located on production server?

Well, I am trying to figure out why the images I upload from my production server occasionally disappear. It does not happen on mup stop & mup start and it does not happen when deploying... but ...
0
votes
0answers
37 views

Meteor is stuck at downloading [email protected]

When I try to make new meteor project on win 10 it stuck on downloading meteor [email protected] and shows the following line: downloading [email protected] How can I troubleshoot this issue? please ...
1
vote
0answers
58 views

Clearing a MongoDB on Heroku

I want to delete all the values in my MONGODB database. My app is running on Heroku, it is a MeteorJS application. I have figured out how to create a button to delete one entry, and it is as follows, ...
0
votes
1answer
32 views

returning a meteor db aggregation

I am trying to have a collection aggregation return in my meteor code but I get no result. I know the db.aggregate returns a collection as I can run it directly in Mongo and can see the collection. ...
0
votes
2answers
51 views

Set variable with REST API data

I've never used a REST api and I'm having trouble figuring out how to set a variable with the returned result.data. I'm using Meteor with ReactJs and console.log('countries', countries) is returning ...
0
votes
1answer
30 views

MongoDB join 2 tables and select field is null

In MongoDB I have a job sign up application. I have two collections- Jobs and HelperJobs. The first collection contains all the jobs and the second maps Helpers to the jobs they signed up for. I ...
1
vote
2answers
55 views

Map to custom domain still displays *.scapp.io

I just followed the procedure to map a single domain to my custom domain: Create the domain mydomain.com in ORGS Create the route myapp.mydomain.com in SPACES Map my app to both myapp.scapp.io and ...
0
votes
0answers
31 views

Can we use mongo driver 3.6.0 with meteor version 1.4.4.6

Remote databases are going to be upgraded to the latest mongo driver version (3.6.0 or above). My current application is on Meteor(1.4.2). Can I upgrade the client mongo used by meteor to 3.6.0 alone. ...
3
votes
1answer
90 views

Meteor doesn't render html template but only path

I just start new project in angular meteor according this: https://angular-meteor.com/tutorials/whatsapp2/meteor/setup And my browser shows this below, which is the path to file where is placed html ...
7
votes
1answer
66 views

Get which program is generated in meteor by babel

How can I know in babel plugin whether files currently transpiled by babel are transpiled for server or client/browser package?
0
votes
1answer
23 views

Meteor Blaze Template - Dynamic field name

I'm passing the arguments field1 and field2 to a blaze template and I would like to use them to get an object property inside that template. For example: field1 = "name", field2 = "total" <h5 ...
1
vote
0answers
44 views

“react-meteor-data” gives error with react 16

I am using react 16 with meteor. I am using react-meteor-data package for using "withtracker". But this package gives this issue TypeError: Class extends value undefined is not a constructor or null ...
0
votes
1answer
65 views

Read synchronously data from Mongo with Meteor

I need a help with async methods, MongoDB and Meteor. I tried Generators, async/await, Promisses but nothing solves my problem. I have a function that returns me if a user has or not a permission to ...