node.js tag

261 questions


2 answers
105 views
0
Node.js catches only MongoDB unique constraint errors

I am using TypeScript.I would like to determine the following unique constraint error. What should I do?Looking at the type definition of the MongoError object, it seems that there are only the messag...


1 answers
82 views
0
error in javascript:TypeError:Cannot read property '2' of undefined

I looked into what was wrong...I don't know because I have included arguments.TypeError: Cannot read property '2' of undefinedconstboard_preference={0:+, 1:○, 2:●, 3:■, 4:+};letboard= [[0,0,0,0,0,0,0,...

2 years ago

1 answers
79 views
0
Split the file with nodejs.Understanding the Possible Function Calls Without Module Reference

We are considering making the code described in javaScript Node js.Nodejs typically use require() to refer to functions categorized by files in modular form.For the above correspondence, all functions...

2 years ago

1 answers
75 views
0
I want to use the library containing fetch() in TypeScriot/nodejs, but I am not sure how to replace global variables.

I would like to use the library aws-amplify in nodejs. Because this library uses fetch APIs, JavaScript/nodejs was solved by using node-fetch as follows:constamplify=require('aws-amplify');global.fetc...

2 years ago

3 answers
64 views
0
How do I daemonize a node.js script?

If you want to daemonize a script created with node.js.For example, if you want a program like screenshot-as-a-service to reside on the server.

2 years ago

1 answers
56 views
0
Error in Javascript forEach

Creating an API using nodejs const_=require('lodash'); const func=require('./func');conditions = [item1, item2,...];const data={};constmain=async()=>{ for (leti=0;i<items.length;i++) {   _.assig...

2 years ago

1 answers
131 views
0
Nodejs (Express) cannot set the SameSite attribute of cookies to None

We are creating a backend for Twitter's view app on Nodejs (Express).The login method is to use Twitter Api to save the token returned after authentication to the session and restore the session from ...


2 answers
108 views
0
Unable to deploy to Heroku odeNode.js+Express N

I am building a site with Node.js and Express.$git add.$ git commit-am Heroku$ herokur loginEnter email and password~~~~~~~~~~~~~~~$ heroku addons:create heroku-postgresql:hobby-dev$ git push heroku m...

2 years ago

1 answers
83 views
0
This relative module was not found: appears when docker composes.

When you run the docker composition command, you get the following error and you cannot access localhost:8080.It seems that I can't find the main.js in the src file, but when I look at the directory, ...

2 years ago

1 answers
86 views
0
I want to create a global chat with discord.js

Global chat on Node.js discord.js (I want to do something that says a on Channel B of A mackerel and a on Channel D of C mackerel, but I can't do it well.Please tell me what's wrong.Code I tried makin...

2 years ago
« - 10 - »

© 2024 OneMinuteCode. All rights reserved.