Closed
Description
class A {
foo = () => console.log("ooo")
}
this used to work, but now in 0.18.0-rc
TransformError: .../index.js: Cannot read property 'error' of null
Do we need to explicitely add some babel plugin now for this? or is it a bug?
answer is you must use a semicolon now, so:
class A {
foo = () => console.log("ooo");
}
But the error is not straightforward, this shouldn't break like this in packager