Open MarkPare opened 4 years ago
I had similar problem. It might be correlated to @babel/preset-env@7.9.0 update https://github.com/babel/babel/releases/tag/v7.9.0 It was released 20 Mar. My issue was with @babel/plugin-transform-classes dependency of @babel/preset-env Downgrading @babel/plugin-transform-classes by adding to package.json works for me for now.
"devDependencies": {
"@babel/plugin-transform-classes": "7.8.6",
I have a component like this:
When component renders, 'doSomething' is called correctly. However, when I change the export to this:
the
doSomething
method becomes undefined and I getUncaught TypeError: this.doSomething is not a function
My babel config looks something like this:
Related deps with versions:
This was not an issue up until yesterday (3/20/2020). I still haven't figured out what the issue is but have narrowed it down to the use of
Container.create
.Anyone else running into this?