-
-
Notifications
You must be signed in to change notification settings - Fork 208
TypeError: Cannot read property 'visitClass' of undefined #243
Comments
same issue. |
This appears to be an incompatibility with the recently released escope 3.4.0. Downgrading to 3.3.0 resolved this issue for me. |
we are also seeing this as of a couple hours ago, with cli |
@chromakode How do you go about downgrading a packages |
npm install --save-dev escope@3.3.0 fixes issue |
@Havunen I'm still getting the same issue when trying that, tried installing locally and globally (I run eslint off of |
but thats definitely a work around as my project has no direct dependency to escope @dan-gamble strange, I just did what @chromakode suggested and it worked for me. |
@dan-gamble You may still have a copy of escope 3.4.0 under |
+1 |
1 similar comment
+1 |
Upstream issue: estools/escope#99 |
+1 to @Havunen Edit, actually that didn't help after I cleared node_modules and ran again. I've had to disable eslint in my project as a result. |
+1 |
+1 |
1 similar comment
+1 |
This is an issue with escope which is a dependency for babel-eslint. See babel/babel-eslint#243 for more info
+1 |
Note: added escope dev dependency to fix this issue: babel/babel-eslint#243 Change-Id: Id866c24b831b9e0fe156e53993538cbbd48acd17 Reviewed-on: https://gerrit.instructure.com/71189 Tested-by: Jenkins Reviewed-by: Jacob Fugal <jacob@instructure.com> Product-Review: Jennifer Stern <jstern@instructure.com> QA-Review: Jennifer Stern <jstern@instructure.com>
Guys you can use my fork of @christophehurpeau's fix to install babel-eslint for now (if you're in need of a urgent fix just like me) npm install git://github.com/lprajus2007/babel-eslint |
@lprajus2007 tip: |
Conservative version bump to fix babel/babel-eslint#243 which was breaking the build.
To work around babel/babel-eslint#243
@dan-gamble - Late to the game but I noticed your question on how to change a global packages dependency. The one-liner is |
babel-eslint -> devDep revert dep prop deletion
To fix this issue (when running `npm test`): babel/babel-eslint#243
To fix this issue (when running `npm test`): babel/babel-eslint#243
- builds did't work completely due to a transitive dependency in older version of babel-eslint (babel/babel-eslint#243) - fixed some lint issues from the debug lib removal that were masked by build issue
hzoo here just adding: this is fixed the latest 2 versions (update your babel-eslint).
npm i babel-eslint
will be >= 4.1.7.Use
npm install --save-dev babel-eslint@next
ornpm i babel-eslint@5.0.0-beta9
Eslint version:
1.4.1
,1.10.3
babel-eslint
:4.1.4
The error:
No matter what path i give eslint (
eslint *.js
,eslint androgenix/assets/js/**/*.js
) i get this error. Not sure where to start looking to fix this. Our old projects seem to work okay but we just started this one and are receiving this error.The text was updated successfully, but these errors were encountered: