Questions tagged [undefined]

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

A variable is undefined if it has not been assigned a value. Depending on the programming language used this might be an actual value or the variable gets assigned some default value like "" (the empty String), 0 or NULL or accessing the undefined variable might result in some kind of error condition.

Use this tag for questions about the behavior of undefined variables or when you see undefined values where you don't expect them.

6824 questions
1
vote
0 answers

TypeError: Cannot read property 'parameter' of undefined

Disclaimer: I am not knowledgeable about Google Script, so detailed explanations of the issue would be much appreciated My goal is to reproduce the steps from this page: https://www.labnol.org/send-sms-google-sheets-200402 However I receive the…
Pierre
  • 11
  • 1
1
vote
0 answers

Typescript compiler wont make up it's mind on null vs undefined for method return

I am moving some code between existing projects and I am having an issue with typescript complaining about the return type of a method. I don't know if it is a change in IDE or a compiler option so I can give you the config options if you need them.…
Gathris
  • 105
  • 1
  • 1
  • 7
1
vote
1 answer

Says {profilePic} un-defined

VS says I have no issues but all my browsers say it is un-defined.. All input is appreciated. import React from 'react'; import "./Post.css"; import{Avatar} from '@material-ui/core'; function Post({ pofilePic, image, username,…
1
vote
2 answers

Error "Cannot call toString on undefined" but variable is defined

In this piece of Javascript creds = cp[0]; data[creds.toString()] = cp[1]; // data is an object Chrome gives me the error TypeError: Cannot call method toString of undefined on the second line. However, I've verified via the debugger that the value…
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
1
vote
1 answer

Undefined variable laravel 7

I keep getting Undefined variable: products products.blade @foreach ($products as $prod) {{ $prod->name }} {{ $prod->buying_price }} {{ $prod->selling_price }} {{…
1
vote
2 answers

linker stage: undefined reference

I already read like 15 of the undefined reference topics here and used google too to find a valid answer, but there was non that really helped. I wrote a 1D and 2D simple storage class which allows rapid loop through by directly accessing the data…
drahnr
  • 6,782
  • 5
  • 48
  • 75
1
vote
1 answer
1
vote
1 answer

Error property _id using Typescript in ANGULAR

I have this message Error in angular: src/app/components/employee/employee.component.html:67:92 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type…
1
vote
1 answer

BibTex: undefined control sequence. ...author} {\bibnamefont {#ref},\ }\href@noop

I have a problem with BibTex citations. I use the following setup: Vim + VimTex (latexmk) + revtex4-2 class + custom preamble. The problem occurs when I try to compile my main file master.tex, in which there is a bibliography forced to one column…
1
vote
1 answer

null value trips up loop

Every time I pass an array to this function, when it hits a null or undefined value it stops the loop. I can't work out how to fix this. When I ask whether the current item in the loop is null or undefined or false, it doesn't answer... function…
cybermotron
  • 987
  • 2
  • 10
  • 29
1
vote
2 answers

TypeError: Cannot read property 'active' of undefined with react-images

Hi I wanted to implement this photo gallery from react-photo-gallery (https://www.npmjs.com/package/react-photo-gallery) I've installed 2 dependencies: react-photo-gallery and react-images I wanted to test the following link…
SpicyyRiice
  • 111
  • 2
  • 14
1
vote
0 answers

Uncaught ReferenceError: autocomp is not defined

I have this error displaying in Firefox Developer Console. Tried and failing to solve it and would appreciate any help. Thanks addDOMLoadEvent(Start_Tags); function Start_Tags() { autocomp.start('tags','torrents'); resize('tags');…
YoshiKen
  • 11
  • 2
1
vote
1 answer

Wordpress functions.php file not working ...Undefined function 'wp_enqueue_style'

I don't know why I'm having this issue. I'm new to wordpress and I am following along with a 'freecodecamp' tutorial(youtube) on how to make a custom wordpress theme from scratch. In the video, the instructor is enqueueing his style sheet using the…
1
vote
1 answer

chectl server:deploy --platform minikube error required parameter body

hello first thank you for reading my question. im using eclipse che with chectl on minikube. when the command "chectl server:deploy --platform minikube" was inserted, i found an error "required parameter body was null or undefined when calling…
atagkim
  • 33
  • 4
1
vote
1 answer

after creating language switcher RouteNotFoundException Route [{$name}] not defined

after grouping urls with prefix in web.php I have created language switcher like this Route::redirect('/','/ge'); Route::group(['prefix' => '{language}'],function (){ Route::get('/', function () { return view('welcome'); }); }); I…
Giga Todadze
  • 63
  • 1
  • 11
1 2 3
99
100