Error: Cannot read property 'forEach' of undefined
See original GitHub issueWindows 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:
- Created 5 years ago
- Reactions:9
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
Fixed by #32 and released as 2.0.3.