Latest Questions

react npm run build fails with Unexpected '/'

The react app is completely fine when I run "npm start" and everything working without errors. But when I try to build the app, it gives the following error: re

res.send return two or more items from a map method

I'm doing a get request and it fetches properly. From there I have to return that data based on the if statement, but the data needs to be returned as an object

Strategy for deploying finished React app in Wordpress

I'm developing a web application using React and WordPress as a headless CMS, since WordPress as a backend is easy for my client to access and change. The React

apply a function on each elements of a list

I want to apply a function to each element of a list. I want to avoid for loop here. I have list of path names as output from tar.getnames(). I want to get list

AAA AD creation getting failed for App Event Optimization

I'm getting the below error while creating AAA Ads for AEO (App Event Optimization) with FB Ads API. { "code": 100, "type": "OAuthException", "message": "

How to enter string value into Delta PLC?

I would like to insert string value into PLC, I searched a lot of information but unable to get an accurate method to do it. The plc that I using is DVP-14SS2 a

Error while trying to precache local SVG files in Flutter using flutter_svg library

I'm getting following error when I try to pre-cache SVG files in flutter using flutter_svg library: > flutter: ══╡ EXCEPTION CAUGHT BY

Unable to connect to remote Kubernetes cluster

When I attempt to connect to a remote Kubernetes cluster with kubectl cluster-info I am getting an error as in the image below : Trying to curl the cluster als

How to use localStorage across web pages

Well, I'm trying to integrate two web pages (index.html and comunidade.html), where the first one is a form where you input some data and the second one is the

How to apply media query in nextjs [closed]

Media Query in nextJs Application - I want to apply media query in my website so that that i can make it responsive how can i do it? I want to

Slowmotion time limit

I made a player in my game, such that it goes into slow-motion when you hold down the space bar. But I want the player to only be available to be in slow-motion

Angular Ag-Grid row group empty render when querying DOM elements with angular-testing-library

I have an ag-grid that contains different columns and column groups, as well as row groups. I am trying to test the DOM elements displayed in the row group usin

What is this error "Cast to ObjectId failed for value "shop.css" (type string) at path "_id" for model "Product""?

I am trying to extract detail of products entered by that administrator. Here is the part of code dealing with that: router.get('/admin-product/:userid', (req,

PowerApps Delegation

i am trying to get past the 500 record delegation but cant do so. I prefer to fix the delegation than to set the record in advanced setting to 2000, i will have

after doing "npx sb init" (react storybook): node_modules/react-router/index.d.ts:151:74 - error TS1110: Type expected error

I am working on a large typescript react monorepo. In one of the packages I added react storybook using "npx sb init" After doing that, when I did a yarn build

Combination of features of convolutional layers channel-by-channel in a multi-branch model

The convolutional model presented below, has two branches and each branch (for example) has two stages (convolutional layers). My aim is to combine the weighte

Concatenate two variables for email subject

I am trying to fetch the attachment data from gmail to google sheets with identifier as subject. The subject format is such as "Disbursement File 2022-05-14" w

React - pass context to SweetAlert popup

My context is as follows: import React, {createContext, useEffect, useState} from "react"; export const CartContext = createContext(); const CartContextProvid

what are data-* HTML attributes?

I've recently found on one of the sites opening tag like this: <script data-ip="93.1xx.3.2x" data-backuri="something.com"> And I couldn't find any info

Flutter / Dart FFI existing .so file for Android

I'm trying to use a pre-compiled .so file with Flutter/Dart FFI. I've generated bindings with dart-ffigen, which seems to work without any issues. I've added th

Linkedin bot Selenium Beautiful Soup not reading email in /overalay/contact-info

So whenever i run the following code, it writes 'no mail found' in the email.txt file. Ive checked the classes in inspect and they're correct. Anyone has any id

UseStore is async? How to ensure that store-data is loaded completely?

I have a serious problem with State Management in React. I am using Zustand and it works pretty well. However, when I access the store and try to output it one

How to programmatically obtain a google cloud project number using its project id in Python

A google cloud project has both a project id and a project number. How can the project id be used to obtain the project number.

I'm using PDFBox to replace text, strange characters

I'm using PDFBox to replace text in a template and there are characters (e.g. a simple J) that the tool recognizes as a special character. Any help to solve thi

How do I integrate Ajax with Django applications?

I am new to Django and pretty new to Ajax. I am working on a project where I need to integrate the two. I believe that I understand the principles behind them b

state is not getting updated for a new user in react native

My app has a test sheet, if a user passes the test he is shown a passing screen and then the state is saved using asyncstorage. But the problem here is, let's s

Vite - empty assets folder (not whole outputDir)

Due to other construction services e.g. from the CMS that is in use also puts files in the same folder as outPutDir I only need to empty the assets folder. At t

Java stream min/max of separate variables

How can I determine both the min and max of different attributes of objects in a stream? I've seen answers on how get min and max of the same variable. I've als

Netlogo: move turtles to non-occupied patches and print it

I want to move turtles to one of patches not fully occupied (n-jobs-to-fill != 0). The code is ask turtles [move-to one-of patches with [n-jobs-to-fill != 0] A

Why I have the old version of database when I reload the page in vuejs? | vue js 2 [closed]

I have a project made with Vue.js 2 When user make a change in website, it sends to this change to the database. It is successfully saved. But