6,796 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-7
votes
1
answer
126
views
I got this error in React - "Uncaught TypeError: Cannot read properties of undefined (reading 'match')" can someone help me please? [closed]
I'm creating a video game search app. I'm using an API so that clicking a searched game card takes you to a new page that contains images and a brief intro about the game. However, this does not work, ...
2
votes
2
answers
229
views
Bitwise division in C : Programme seems to work for other numbers but when the divisor is 0 it returns 11 for no apparent reason
I am trying to solve the problem posed in this question which asks that division of two numbers be performed in a bitwise manner. So, I wrote the following functions.
sum() adds two numbers.
larger() ...
0
votes
0
answers
54
views
Codeigniter 3... Undefined Property $Ngetest
Models: Ngetest.phpp
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Ngetest extends CI_Model
{
public function showEcho()
{
return "naisu";
...
0
votes
0
answers
85
views
Error: Undefined Mixin in Nuxt 3 when using Sass — "Pre-transform error: [sass] Error: Undefined mixin." I'm working with a Nuxt 3 project
I'm working with a Nuxt 3 project, and I'm getting the following error related to Sass mixins when I try to run the dev server:
➜ DevTools: press Shift + Alt + D in the browser (v2.5.0) ...
1
vote
0
answers
37
views
Javascript TypeError undefined on for loop only (not off-by-one) [duplicate]
I have a function that gets called when you click a button. I'm checking to see if the clicked item has the class "itm-active". If it does, don't do anything. Else check for elements that ...
0
votes
0
answers
42
views
NestJS: After adding a new module and injecting services from other modules, application stopped working
I'm building a backend application using NestJS, and everything was working smoothly. Recently, I added a new module and attempted to use services from existing modules within it. However, after ...
0
votes
0
answers
91
views
When submitting data through an EJS form, all data get returned as "undefined"
I'm currently trying to make a login and signup form using EJS, Express, Node, etc. However Whenever I submit data from a form, all data is being returned as "Invalid"
I've checked my user ...
2
votes
2
answers
147
views
Why are my songs showing up as undefined?
Working in p5.js on a class assignment. We have to make a music player. I found a tutorial in the site, but despite copying the code near-exactly (only altering so as to implement multiple songs), I ...
0
votes
0
answers
23
views
Undefined reference to inherited Methods [duplicate]
I'm trying to implement two Classes - 'EditObject' and 'ProgressObject'.
Progressobject is supposed to inherit from EditObject, all its variables and Methods.
When I try to use Methods from '...
0
votes
1
answer
109
views
Type similar to Record<A, B> but saying that not for every A there is a B value (not even an undefined)
Record is defined as follows:
/**
* Construct a type with a set of properties K of type T
*/
type Record<K extends keyof any, T> = {
[P in K]: T;
};
It is defined such that for a Record&...
0
votes
2
answers
107
views
What does the empty function body return in JS?
Does an empty function body implicitly return undefined in JS?
console.log((() => {})())
Clearly it does right? The console outputs undefined in the example above...
// but let's do ...
2
votes
1
answer
116
views
Why can for...in loop run on undefined?
Why does this code work?
for (const i in undefined) {}
From for...in - JavaScript | MDN:
The for...in statement iterates over all enumerable string properties of an object (ignoring properties keyed ...
2
votes
2
answers
140
views
TypeScript ignores explicit undefined type annotation
When I specify a type of foo|undefined for myConst below, type inspection correctly tells me that myConst has a type of foo|undefined on that line. However, in the next line down, type inspection says ...
1
vote
0
answers
31
views
holder.js has 'global is undefined' error
When I tried to use holder image within the below code:
import { run as runHolder } from "holderjs/holder";
import React, { Fragment, useEffect } from "react";
import { Image } ...
0
votes
0
answers
49
views
Testing undefined, failing in JS
In an Express app I have the following JS code (server side) in a middleware to check that a user provides an adequate token. This is only the relevant part for my question:
const authHeader = req....