Questions tagged [javascript]
For questions about programming in ECMAScript (JavaScript/JS) and its different dialects/implementations (except for ActionScript). Note that JavaScript is NOT Java. Include all tags that are relevant to your question: e.g., [node.js], [jQuery], [JSON], [ReactJS], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript
2,532,658
questions
0
votes
0
answers
3
views
Jest - react-native-color-matrix-image-filters/dist/CMIFColorMatrixImageFilterNativeComponent.js: Could not find component config for native component
I have a React Native Android project and I just upgraded the react-native version from 0.72.3 to 0.74.3. After a fair amount of library upgrading, TS and Lint fixes, etc I was able to get my ...
-2
votes
0
answers
13
views
Stripe Connect Payouts API
I am creating an application in which users can add their bank accounts in the application and from admin side I want to send the payouts to their bank accounts. I am using Node.js and Stripe.js (In ...
-1
votes
0
answers
2
views
req.headers.authorization is undefined
So I've been trying to implement JWT authorization for my project, and there's this specific step that I've been stuck for hours... So I have a middleware setup to try and verify the access token ...
-1
votes
0
answers
6
views
Create custom img collage from uploaded photos [closed]
is there some library to build custom collage, where user uploads img, and it will create collage?
Something like this. I dont really know where to start.
My idea is to create pre-defined grid, and to ...
-1
votes
0
answers
9
views
Combine arrays on update to Dynamo table - Cannot read properties of undefined (reading '0')
I have a DynamoDB table that is holding several pieces of data, of which one will be an array of objects.
I have a lambda that will handle another array of objects coming in that I am wanting to ...
0
votes
0
answers
8
views
NO_RESULTS return from directionsService.route()
I'm currently using Google's Directions API, and I stumbled upon an issue.
For some reason, a lot of my calls to directionsService.route() to receive the duration of the itinerary seem to return ...
0
votes
0
answers
7
views
@iFrame-resizer/react implementation error - Uncaught SyntaxError: Unexpected token 's', "scroll-to-top" is not valid JSON
I am using the latest version of iframe-resizer/react for automatically adjusting the height and width of the iframe.
Whenever I'm reacting the content, I'm getting a runtime error stating -
VM2860:1 ...
0
votes
1
answer
13
views
The input in searchbar disappears when i click on any other space/part of the browser of when i click tab button
import React, { useState, useEffect, useRef } from "react";
import { useNavigate } from "react-router-dom";
import axios from "axios";
import Autocomplete from "@mui/...
0
votes
0
answers
13
views
TypeError: Cannot read properties of undefined (reading 'quantity')
Ecommerce site using MERN. This is the Navbar.jsx component. Error shows cant read undefined 'quantity' on line 72.
ERROR MESSAGE
Uncaught TypeError: Cannot read properties of undefined (reading '...
0
votes
0
answers
8
views
Getting the Editor Content based on the Cursor Position in a Vs Code Extension
1Are there some available ways for getting the entire function based on the current cursor position in the Vs code Editor ,
For Eg. Refer This Image here my cursor is at a line inside the function , ...
-1
votes
0
answers
8
views
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax,
This is the error i am getting:
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such ...
-2
votes
0
answers
19
views
I can't display values from a javascript function separately through an array or a callback function [duplicate]
I need to retrieve the latitude and longitude coordinates to use them elsewhere. What is the easiest way? Using an Array? Or an callback function?
According to the code snippet below, the console.log(...
0
votes
0
answers
10
views
scrollTo specified position when entering page
When entering the page, I use window.scrollTo to scroll to a specified position, but it seems that the browser will scroll the page back to the top?
In a Vue3 project, I used window.scroll({top: 200, ...
0
votes
0
answers
23
views
How to use event.target.closest for navbar html javascript css?
I'm making a navbar. On click of items which has subnav pages, the navigation item/expands or collapses.
Here's the HTML/JS/CSS snippet.
const navHasChilds = document.getElementsByClassName("...
0
votes
0
answers
10
views
Request the user's phone number directly through the Telegram WebApp
I want to request the user's phone number directly through the Telegram WebApp.
I created this code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-...