29,076 questions
0
votes
1
answer
29
views
I cant set env variable in my node scripts
when im trying to set my mongo url in node scripts its not working
C:\Users\we\Desktop\Proj1\project>npm run dev
> dev
> set "MONGO_URL=mongodb://localhost:27017" && echo %...
0
votes
2
answers
67
views
Error during the building 'node-canvas' on arm64 M1 CPU
I'm getting the following error on Mac with M1 CPU:
I'm unable to build nodejs app with 'node-canvas' npm package, because Error: dlopen(/Users/..../node_modules/canvas/build/Release/canvas.node, ...
0
votes
1
answer
22
views
Meteor withTracker and publications and async code
withTracker and async seems weird
export const PageLayoutContainer = withTracker(({}) => {
const logContext = "PageLayoutContainer";
// console.log(logContext, "subscribe('...
0
votes
0
answers
61
views
The cordova-plugin-qr-barcode-scanner plugin is having problems creating APK builds after updating to Android 14 (SDK 34)
My project uses meteor js version 2.5.3 and I recently updated my apk target sdk version to 34, after making these changes, I was unable to build the APK.
The build was successful after removing a ...
0
votes
1
answer
12
views
Unable to get data context from Template after rendering with #each in Meteor
I'm using blaze with Meteor.
Let's try the following simple setup:
<template name="render_array>
<ul class="list">
{{#each items}}
<li>{{...
0
votes
1
answer
43
views
React Helmet: Hash Not Accepted?
My Javascript web app uses React Helmet. I'm seeing this in the console logs on the browser:
Either the 'unsafe-inline' keyword, a hash ('sha256-lF5Q6Eq8Av6zH8RSHuuey72cx1jMH2u3UMj8e7nNjto='), or a ...
0
votes
0
answers
75
views
SSE not working only over HTTPS, need a solution that doesn't change Nginx
HTTP, testing locally works perfectly. As soon as I deploy it to our test server, it doesn't detect any clients from the front-end anymore. When I call the function to send the data through SSE from ...
-2
votes
1
answer
36
views
Twilio Voice and Meteor.js - Can’t Get req.body In WebApp.handlers.use()?
I’m working on getting Twilio Voice working with my Meteor app. Code on the client pings the Twilio server, which then sends a POST request to my server endpoint, including the ‘to’ phone number or ...
1
vote
1
answer
138
views
Meteor node error : Unable to resolve some modules: "node:stream/web"
Meteor version : 2.16
Node version : 18.15.0
When starting my meteor app, I am getting following lines of error but not sure the cause of this :
(node:6749) Warning: Accessing non-existent property '...
0
votes
1
answer
31
views
Error - The positional operator did not find, Mongo db update command not working in Meteor
My stored doc in mongo is :
[{
_id: 'Bd5r6vmb6bu5R2chQ',
run_status: true,
start_time: 2024-06-23T20:19:12.000Z,
stop_time: 2024-06-23T20:19:12.000Z,
strategies: [],
summary: '{"...
0
votes
1
answer
286
views
React Router: Accessing Params in the Server for SSR
I've just started to play around with this package that makes it super easy to integrate SSR.
https://github.com/Meteor-Community-Packages/react-router-ssr
The thing is I do not know how to access the ...
0
votes
1
answer
17
views
While downloading abernix:[email protected]...: error: certificate has expired
while running meteor remove standard-minifier-js && meteor add abernix:standard-minifier-js or meteor add abernix:standard-minifier-js getting below error. Any help would be highly appreciable....
0
votes
1
answer
37
views
Meteor.apply() only returns result if subscribed to the data
In my Meteor React app, I am trying to use Meteor method to simply fetch data from the db and use it on the client. As far as I know, the method I am using lives in a file that is run on both server ...
0
votes
0
answers
21
views
Meteor - include graph (piechart) inside tooltip (tippy.js)
I would like to include two graphs inside an informative tooltip that shows up upon hovering a button.
I am using tippy.js.
The html code looks like below:
<template name="...
0
votes
0
answers
179
views
ReactPlayer is re-rendering when using custom buttons
I am using ReactPlayer to play videos from different sources like Youtube and Vimeo.
I want to implement a custom play/pause button along with a custom Slider to show player progress.
I am currently ...
0
votes
1
answer
29
views
Why is it not possible to use spacebars to insert a style for an HTML element?
I'm really struggling with the following:
<td class="left {{tableStyle}}" {{background}} >{{value}}</td>
And my JS code:
{'background':'style="background-color:red;"'}
...
0
votes
1
answer
26
views
Meteor Up Mongo error when running `mup setup`
Getting a confusing error when running mup setup:
mup setup ─╯
Started ...
0
votes
1
answer
70
views
How to upgrade MongoDB version that comes with Meteor 1.8.1
I am having an issue where my live app deployed to Galaxy is not acting the same way as my local version. See this question.
I checked the MongoDB version locally, and it says it is version 4.0.6 ...
0
votes
0
answers
32
views
Meteor Subscriptions stopping after updating document - only on deployed
I have a meteor react app.
I am having a problem where on the live (production) version, when I update a document, the subscription to the particular document goes away.
When I run it locally, ...
1
vote
0
answers
62
views
Helmet Rejects Hash?
I'm getting a message from Helmet saying:
Refused to execute inline script because it violates the following
Content Security Policy directive: "script-src 'unsafe-eval'
'unsafe-inline' 'sha256-...
0
votes
1
answer
157
views
Helmet Rejects Localhost Even Though it is Included in Script-Src?
I'm running my node.js web app at:
http://localhost:3000/
I'm getting this error from Helmet:
Refused to execute inline script because it violates the following
Content Security Policy directive: &...
0
votes
1
answer
20
views
Add a specific package verion to meteor
when I update Meteor from [email protected] to a newer version the included semantic:[email protected]_5 will be updated to semantic:[email protected].
I would like to keep the old version, because in the new some icons are ...
0
votes
0
answers
91
views
cordova-plugin-barcodescanner crashing after scan on Android
cordova-plugin-barcodescanner crashing after scan on Android.
Camera launches. Able to capture text from barcode and print to log. App then crashes and goes to login page.
barcodescanner works as ...
-1
votes
1
answer
135
views
Setup for Helmet and ReportURi?
I'm using Helmet and getting one of these console.log messages:
:3000/:48 Refused to execute inline script because it violates the
following Content Security Policy directive: "script-src ...&...
0
votes
1
answer
84
views
GA Preview Says Tags are Working on Ngrok But Not on Production?
I have a react web app. I installed GA tags using the npm package, react-gtm-module. I put the app up on ngrok and tested it in GA on preview mode. Everything worked great. The Google Analytics tag ...
2
votes
0
answers
33
views
Why does this meteor publication go slower when using limit?
I just "solved" a major performance issue in a Meteor.js application I maintain, but what I did seems completely counter intuitive. My guess is that my confusion has to do with my lack of ...
0
votes
1
answer
71
views
Migrating from meteor 1.8.3 to 2.6
I have an old project and I want to use MongoDB 5 which is supported by Meteor 2.6 and the current software that I'm using is on version 1.8.3.
I understand and see the changelog and migration guide.
...
0
votes
1
answer
31
views
Meteor wallet app tutorial mins 9:27 - 12:12 Type annotations can only be used in TypeScript files error
I'm using meteor js for a project and keep getting this error following the tutorial in meteor university.
for context i'm on the first project build meteor wallet app tutorial mins 9:27 - 12:12.
does ...
0
votes
1
answer
86
views
MeteorJS Oplog: Got exception while polling query MongoError: no primary server available
we needed to duplicate a legacy meteorJS app recently, onto a new server and a new database.
So we cloned the server, created a new database and pointed the cloned server to the new database.
The ...
0
votes
1
answer
50
views
Login forbidden after upgrading Meteor version 2.2 to 2.4
Meteor version: 2.4
Node version: 14.x
After upgrading Meteor version 2.2 to 2.4 I face some issues. In the project, I used useraccounts:core and connected with that some other dependencies. After the ...
1
vote
1
answer
763
views
Expo react-native app crashes right after launch in Test Flight
I have an expo app and trying to do my first release in TestFlight. The app is built successfully in the eas servers and then delivered to Apple for deployment. Everything goes well until I download ...
1
vote
1
answer
347
views
How to download a file stored as Binary in MongoDB
I am using MeteorJs, MongoDB and React. I want to simply make a module to upload/download files and store them in a MongoDB collection. So far, I can upload the file but I don't know how to download ...
0
votes
1
answer
20
views
Meteor server side packages debugging
Does anyone know of a way to debug imported server side packages in meteor?
I came across this link https://forums.meteor.com/t/vs-code-server-debugging-with-meteor-1-10/53437
I followed the ...
1
vote
0
answers
17
views
Profiling packages and services for meteor apps
How can I easily profile my meteor app without filling the code with console.logs or console.time. Their is an old discussion on this (https://stackoverflow.com/questions/13402344/how-to-use-profilers-...
1
vote
1
answer
116
views
MeteorJS passwordless email authentication sends a link pointing to the specific server instead of domain name
I am using MeteorJS passwordless authentication, Cloudflare for DNS, Mailgun as an email server, and Nodechef for app hosting: https://docs.meteor.com/packages/accounts-passwordless
Whenever a user ...
1
vote
0
answers
30
views
Meteor app is not working with nivo on runtime
I am now responsible for a meteor app. App has UI and server parts. UI part is written in ReactJS. In this app we have a component called AnalyticsDashboard which contains some anayltic data as a ...
1
vote
1
answer
33
views
Meteorjs equivalent of ws.send
Im trying to send a simple message that event has happened on the backend, specifically i have a observable that listens if anything changed/update in mongodb then updates the related record in ...
0
votes
1
answer
208
views
Meteor/Vue/Framework7: No style being used
I am using Framework7 with meteor and vue and I have included framework7 like this in my main.js:
import { Meteor } from 'meteor/meteor';
import { createApp } from 'vue';
import { VueMeteor } from '...
0
votes
0
answers
33
views
Meteor/Vue: Display result of search
I would like to add a search field to my app and show all articles from my Collection that match the entered value. The searchArticles method is called but the values are not shown as defined below ...
1
vote
1
answer
102
views
Meteor Blaze dynamic template CSS results in duplicate element IDs
I was given an old Bootstrap template to make it dynamic, and I had issues with dynamic CSS with ::before and ::after selectors check the below example image
The core issue is, that it works fine for ...
0
votes
0
answers
77
views
Inconsistent behavior with Map.entries
When I run the following code in dev console, I get the expected response:
const map = new Map();
map.set(1, "one");
map.set(2, "two");
map.set(3, "three");
for (const [...
0
votes
1
answer
186
views
How sign a message on Near with Meteor Wallet in js app?
I would like to get the signature of a message 'hello' on Near in my Next Js app.
I wanted to use this code : https://docs.near.org/develop/integrate/backend-login, but I did not manage to connect to ...
0
votes
1
answer
226
views
Evaluate's METEOR Implementation returns 0 score
I have the following codes:
import evaluate
reference1 = "犯人受到了嚴密的監控。" # Ground Truth
hypothesis1 = "犯人受到嚴密監視。" # Translated Sentence
meteor = metric_meteor.compute(predictions=[...
4
votes
1
answer
413
views
Configuring MUI Components selector API with Babel in Meteor "TypeError: Cannot read property 'id' of null" on project start
I have a Meteor React project, for which I have added Material UI v5 (installation instructions), which comes with Emotion for CSS-in-JS styling:
$ meteor create --react meteor-react-mui
Created a new ...
0
votes
1
answer
111
views
meteor run android, got this errorAndroid target: Command failed with ENOENT: avdmanager list target spawn avdmanager ENOENT
meteor run android
Your system does not yet seem to fulfill all requirements to build apps for Android.
Please follow the installation instructions in the mobile guide:
http://guide.meteor.com/cordova....
0
votes
1
answer
499
views
Rocket.Chat ignores "ROOT_URL"
I downloaded the new Rocket.Chat 6.4.4 from tar.gz file (installing it as a service without docker)I and set up the service with the below environment variables:
ROOT_URL="https://full.domain....
-1
votes
1
answer
75
views
Meteor.loginWithToken throwing 403 Login forbidden
I am implementing the login logic my own, instead of using Meteor.loginWithPassword.
After perform all the checking on user credential, i will generate access token from the backend:
And frontend ...
0
votes
0
answers
34
views
Accessing parent Template from within {{#each}} blocks
In my code, I do the following:
<template name=A>
{{#if something}}
{{#each items}}
{{> items}}
{{/each}}
{{/if}}
</template>
Elsewhere I need to get the instance of ...
2
votes
1
answer
80
views
Unable to use the jquery smartwizard npm package with meteor
I want to use the smartwizard package in my meteor project. I followed the installation instructions, but I' getting an error.
I installed it with:
npm install smartwizard
added it in the js file:
...
0
votes
1
answer
23
views
Meteor production and dev environments has different public folders
I notice that DEV ENV on meteor, public folder is under /public.
So I use something like:
fs.writeFile(process.env.PWD + "/public/" + file)
To save files.
On production, I notice that public ...