question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot read property 'forEach' of undefined

See original GitHub issue

Windows 10, node.js 10.9.0

$ spoof list
Error: Cannot read property 'forEach' of undefined

No stack trace, only that message.

$ spoof version
2.0.1

Also:

$ spoof reset wi-fi
Error: Could not find device for wi-fi

$ spoof randomize wi-fi
Error: Could not find device for wi-fi

(Same when using “Wi-Fi” as ID)

My network:

$ ipconfig

Windows IP Configuration


Wireless LAN adapter Local Area Connection* 15:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Wireless LAN adapter Local Area Connection* 16:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . : fritz.box
   IPv6 Address. . . . . . . . . . . : 2003:ea:93d0:f500:1850:c080:15ca:a08b
   Temporary IPv6 Address. . . . . . : 2003:ea:93d0:f500:f409:fa1f:aec5:5195
   Link-local IPv6 Address . . . . . : fe80::1850:c080:15ca:a08b%21
   IPv4 Address. . . . . . . . . . . : 192.168.178.28
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : fe80::3631:c4ff:fefb:6967%21
                                       192.168.178.1

Ethernet adapter Bluetooth Network Connection 6:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ferosscommented, Aug 12, 2019

Hi folks, sorry that you’re experiencing an issue. Since I don’t have a Windows machine, I recommend someone take a look at the code to find the issue. Once you find it, send a pull request and I’d be more than happy to review it and merge it. Cheers!

0reactions
ferosscommented, Nov 5, 2020

Fixed by #32 and released as 2.0.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'forEach' of undefined - Stack Overflow
And undefined has no forEach method. To fix this, always make sure you put a semicolon at the end of your lines (or...
Read more >
[AskJS] Why does this simple forEach give error Cannot read ...
But the following code gives an error script.js?v=3:196 Uncaught TypeError: Cannot read property 'forEach' of undefined :
Read more >
Error: Cannot read property 'forEach' of undefined #249 - GitHub
js from the contentful-management package] . Now, in this line we're trying to run JSON. parse on this string. Because at position 0...
Read more >
typeerror: cannot read properties of undefined (reading 'foreach')
The "Cannot read property 'forEach' of undefined" error often occurs when trying to access an array index that doesn't exist [1][2]. This means...
Read more >
TypeError: Cannot read property 'forEach' of undefined - General
Did you edit settings.js? If so, check to see if you missed a comma or a bracket. If you can't find an error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found