Closed kepeterson closed 5 years ago
The issue is that babel 6 was never supported by babel-plugin-istanbul@5. Initially it incorrectly worked but we're unable to support this setup. The problem is that istanbul-lib-instrument@2.3.0
introduced support for class private fields, but this causes babel 6 to fail. In theory you can pin to babel-plugin-istanbul@=5.1.3
and istanbul-lib-instrument@=2.2.0
though this is really not supported. My advice is to work on upgrading to babel 7 or downgrade to babel-plugin-istanbul@4 (the version which supports babel 6).
The next release of babel-plugin-istanbul will provide a clearer error for this case stating that babel 7 is required.
I've upgraded my project to use the latest version of
babel-plugin-istanbul
(commit change at bottom). However, the project no longer properly bundles after the upgrade. The only change was movingbabel-plugin-instabul
from 5.1.3 to 5.1.4My modules all fail to build in the following way, throwing an error about a function not being iterable.
Upgrading babel-plugin-istanbul introduces new versions of several babel dependencies as shown in the changes in the
yarn.lock
file. Could this plugin be incompatible with those versions? What could be causing such a drastic change from this minor version bump?