-
-
Notifications
You must be signed in to change notification settings - Fork 209
Error with eslint@2.3.0: Cannot find module 'estraverse-fb' #267
Comments
Related: eslint/eslint#5476 |
ESLint@2.3.0 removed For now, you'll have to pin to 2.2.x |
Pins eslint to 2.2.0 - babel/babel-eslint#267 Overrides react/prefer-stateless-functions
Going to just error "Pin to ESLint 2.2.2" so the error is clearer, until this is fixed. https://github.com/babel/babel-eslint/releases/tag/v6.0.0-beta.5 |
Until babel/babel-eslint#267 is fixed.
because of babel/babel-eslint#267
…e. For more details see babel/babel-eslint#267
Signed-off-by: James Hamlin <jfhamlin@cotap.com>
Fix eslint to ~2.2.0 to ensure it does not cause errors. See babel/babel-eslint#267 for more
Fix eslint to ~2.2.0 to ensure it does not cause errors. See babel/babel-eslint#267 for more
Fix eslint to ~2.2.0 to ensure it does not cause errors. See babel/babel-eslint#267 for more
Fix eslint to ~2.2.0 to ensure it does not cause errors. See babel/babel-eslint#267 for more
Fix eslint to ~2.2.0 to ensure it does not cause errors. See babel/babel-eslint#267 for more
Fix eslint to ~2.2.0 to ensure it does not cause errors. See babel/babel-eslint#267 for more
Fix eslint to ~2.2.0 to ensure it does not cause errors. See babel/babel-eslint#267 for more
Instead of installing an older eslint version you can just |
@tsm91 I don't recommend installing estraverse-fb because that just masks other potential errors. You should either stick with an older eslint version or just update to the latest babel-eslint |
@zerkms Ok I think i'l release a patch for babel-eslint@5 to use eslint 1. |
@hzoo i havent noticed any, yet |
If it works for you then great; but I remember finding issues - although it's the nature of the tool (depends on the rules you use and the code you write) |
Ok went ahead and made babel-eslint@5.0.1 to have a ESLint 1 peerDependency, and I moved babel-eslint@6 out of beta for ESLint 2! |
with these rules it works in my case it broke with an older version, because of an airbnb/base arrow function related rule |
Signed-off-by: James Hamlin <jfhamlin@cotap.com>
FWIW, I ran into the "Cannot find module 'estraverse-fb'" issue in a project I'm working on. Change to: devDependencies: did the trick for me. |
### [Edit by hzoo] - if you are experiencing this error, pin to ESLint 2.2.2.[Edit by hzoo]: If you are using ESLint 2, use babel-eslint@6.x.x
Hi,
When I use babel-eslint with eslint@2.3.0, the following error is thrown. But when I use eslint@2.2.0, the error doesn't occur.
I created a sample repository to reproduce this error. To reproduce, please checkout this repository and run
npm install && npm test
.Environment:
The text was updated successfully, but these errors were encountered: