-
-
Notifications
You must be signed in to change notification settings - Fork 30
TypeError: Cannot read property '0' of undefined #66
TypeError: Cannot read property '0' of undefined #66
Comments
Hi @gaborantal, thanks for the issue!
It isn't technically required, Though, it's true that you should probably always provide options, like
This should be I think it would be good to add |
@mdjermanovic Yup, thanks, that solved my problem, it works like a charm now. I am also on your opinion, these should've been in the sample in README. I'd like to notice that it would've been better to use let/const/etc in the sample codes. If you don't mind, I'll send a PR with this change. (the loc is intented to used by my future function that will be implemented.) |
@gaborantal feel free to submit a PR. |
I'm not very good with npm/node.js, but I would guess that it wasn't defined, or wasn't defined as an array |
I just tried to run the provided code from README. However there are several problems: the first is that
eslintScope.analyze
requires a second parameter calledprovidedOptions
.The second problem is a TypeError:
My used dependencies are (from package.json):
Versions:
node --version
v12.19.0
npm --version
6.14.8
My full code (I was just fiddling around to test something):
The text was updated successfully, but these errors were encountered: