Skip to main content

Questions tagged [undefined]

A variable is undefined if it has not been assigned a value.

undefined
0 votes
2 answers
11 views

Perl IO::File dying with error "Can't use an undefined value as a symbol reference at script.pl line LINE" - can't write to file

Trying to open a file handle to write text to, but script keeps failing with the error: Can't use an undefined value as a symbol reference at C:/Users/USER/Documents/script.pl line 207, <GEN1> ...
skeetastax's user avatar
  • 1,436
-1 votes
1 answer
42 views

API is returning undefined for all of my dynamic categories

I am making a mock movie search engine where the initial search results will pull up an array on movies based on a search term, and after you click "SEE MORE" on the specific movie you want ...
Cam Watkins's user avatar
-6 votes
0 answers
42 views

Why is my function stating Name error not defined when it is very obviously defined and also working independently but not as nested in another code [duplicate]

I am writing a code that can visualize different types of sorting algorithms. I have integrated 5 different algorithms all of which work just fine but for some reason the introsort code just doesnt ...
Moiz khokhar's user avatar
1 vote
0 answers
9 views

Warning: Undefined array key 0 releases/80/vendor/magento/module-configurable-product/Model/Product/Type/VariationMatrix.php on line 47

A configurable in the Product view opens up with the error message, of which I cannot proceed any further. The children attached can open up without issue. There were not any issues with opening up ...
user76474's user avatar
0 votes
1 answer
40 views

In Alpine.JS, this.property inside method is undefined

I have a request for help with Alpine.JS I have a packetaApiKey property defined. When I access it this.packetaApiKey in the pickPoint method, it works as expected. But in the showSelectedPickupPoint ...
Marek Vinárčik's user avatar
0 votes
1 answer
26 views

Angular - TypeError: Cannot read properties of undefined (reading 'forEach')

I am trying to read the roles array from this object and getting the error: TypeError: Cannot read properties of undefined (reading 'forEach') Code: this.data.roles.forEach(role => { this....
user2549382's user avatar
1 vote
1 answer
39 views

Can TypeScript specify keys that are allowed to not exist, but cannot be assigned to `undefined`? [duplicate]

Summary I want to disallow any explicit undefined value while still allowing implicit undefined values. Background In JavaScript, we have this behavior where accessing a key that does not exist yields ...
nullromo's user avatar
  • 2,419
1 vote
2 answers
64 views

Empty vs. Undefined in Javascript [duplicate]

In Javascript, if I make an array using Array(10), it creates an array with 10 empty items. If I access any item in that array, it returns undefined. However, if I create an array with a length of 10 ...
idk's user avatar
  • 45
0 votes
0 answers
43 views

Uncaught TypeError: Cannot read properties of undefined while reading values from an array that is not undefined in console.log()

I am developing a simple application in React, and I have an array that I want to use .map and display some options. There are two selects, one for the year, and one for the month, which should update ...
FellipeParreiras's user avatar
0 votes
1 answer
20 views

Having an issue with Tyranobuilder, unexpected character issue

I am building a game using Tyranobuilder, I defined a character focus behavior on game settings, such that when a character joins the scene and speaks, they will be bright and when another character ...
dramaticlook's user avatar
0 votes
1 answer
47 views

Problem when using loop-generated variables in ansible

What i'm trying to do is generating lots of similar directory trees. I woul like to set a dict which describes the pattern of the tree. Then i want ansible to generate multiple directory trees with ...
Kirill Zelepukin's user avatar
0 votes
0 answers
22 views

Reading values from 'Google form' is undefined [duplicate]

I wrote a code in App Script and connected it to a form on the Google Forum Now the problem is that I can't read the data from the fields in any way. I keep getting 'undefined' errors Like: TypeError: ...
Shevy kossovsky's user avatar
0 votes
0 answers
18 views

Function returns UNDEFINED while scipt does returns values

I was able to run this script and get the values out of the response. Happy as I was, I wrapped the script in a function and then it returned UNDEFINED. I am pulling all my hairs because the script ...
Paul tje's user avatar
0 votes
0 answers
26 views

undefined object while using useContext

This particular things seems happening when i run these codes AuthContext.jsx: // context is a state management tool for passing props import { createContext, useReducer } from "react"; // ...
Vinay Sankar Gokavarapu's user avatar
1 vote
1 answer
98 views

vuejs3 and vite import.meta.env.VITE_BASE_URL not working

Hello I'm trying to get base url from .env file. And I'm getting undefined. I have tried some stack overflow answers and documentation but it didn't help. console.log('env', import.meta.env....
Dusan's user avatar
  • 111

15 30 50 per page
1
2 3 4 5
456