Comments (7)
Ahh I see. Thanks. I'll update
from eslint-plugin-flowtype-errors.
Just tested it and the error no longer appears -- thank you!
from eslint-plugin-flowtype-errors.
Semi-related now regarding:
Can this plugin be configured to use my flow-bin?
I see in in a few places that the plugin checks for process.env.FLOW_BIN
, and if that's not found, it require
s flow-bin
. (eg, https://github.com/amilajack/eslint-plugin-flowtype-errors/blob/master/src/collect.js#L16)
What would be the best way to set process.env.FLOW_BIN
so that the plugin would use my version of flow? Is that possible?
from eslint-plugin-flowtype-errors.
Last bit of info - just realized I'm on [email protected]
, but 2.0.0
makes some changes to the flow-bin
dependency that might fix this.
Can a new version be released to npm?
Edit: Does not look like the new version fixes the issue
from eslint-plugin-flowtype-errors.
Just to confirm, try this:
npm cache clean
rm -rf node_modules
# remove eslint-plugin-flowtype-errors and flow-bin from package.json
npm i -D eslint-plugin-flowtype-errors
npm i -D flow-bin
npm i
from eslint-plugin-flowtype-errors.
@amilajack - thanks. Same error, unfortunately:
Unexpected token +: [flowtype-errors/show-errors]
Note that the +
syntax was introduced in [email protected], and this plugin has a dependency on version 0.33.0.
The flow-bin
in my top-level node_modules/.bin
directory is the latest 0.36.0 version:
λ ./node_modules/.bin/flow version
Flow, a static type checker for JavaScript, version 0.36.0
And the flow-bin
in the node_modules
for this plugin is 0.33.0
:
λ ./node_modules/eslint-plugin-flowtype-errors/node_modules/.bin/flow version
Flow, a static type checker for JavaScript, version 0.33.0
I'm assuming this plugin is using the 0.33.0 instead of 0.36.0.
Here's a screenshot, if it helps:
from eslint-plugin-flowtype-errors.
Sorry for the delay. I've just pushed some fixes for this in a preminor:
npm i -D [email protected]
Would be great if you could test it out and let me know if everything works out okay
from eslint-plugin-flowtype-errors.
Related Issues (20)
- 32-bit error message is sometimes misleading HOT 2
- Broader flow-bin peer dependency range? HOT 2
- update flow-bin peer dependency
- Insufficient error information HOT 2
- Feature request: Report flow warnings as eslint warnings HOT 7
- Support latest version of Flow (0.66) HOT 5
- Feature request: a recommended shared config? HOT 2
- Cannot use 'JestMockFN' HOT 2
- No matching version found for [email protected] HOT 2
- Getting errors on TravisCI HOT 6
- Issue setting up monorepo HOT 7
- Tests against multiple eslint versions
- Error for typeof foo === 'symbol' HOT 1
- Hangs during webpack build HOT 2
- migrate from appveyor to azure pipelines
- How to configure this with create react app without ejecting ? HOT 3
- Error: Cannot resolve name `$Shape` (flowtype-errors/show-errors) HOT 5
- Action Required: Fix Renovate Configuration
- Dependency Dashboard
- deprecation warning appears on install
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-flowtype-errors.