Closed dtothefp closed 7 years ago
We're getting it on babel 6.5.2
and babel-plugin-typecheck 3.9.0
If it's not obvious already, it seems that it interprets this:
{
hasLoadedOnce: false
}
As a type declaration for hasLoadedOnce
instead of a variable assignment on the object, thus forcing it to only accept false
as value.
Switching back to 3.8.0
solved the problem for us.
Hi, sorry for taking so long to respond to this, this project is now deprecated in favour of https://codemix.github.io/flow-runtime which aims for full compatibility with Flow.
I checked and babel-plugin-flow-runtime
does not have this particular bug.
This error started popping up yesterday coinciding with a Babel
6.9.0
release, but I'm not sure the two are related. Here is the error I'm receiving:for a code block without any type checking:
I made a sample repo demonstrating the issue using typecheck
3.9.0
https://github.com/dtothefp/typecheck-babel-demoAnd a branch with a working build on typecheck
3.8.0
https://github.com/dtothefp/typecheck-babel-demo/tree/babel-6.9.0-typecheck-3.8.0