New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: getBuiltIn(...) is not a constructor #737
Comments
The problem in built-ins definitions on the Babel side - on |
You are right, by changing require("core-js/modules/esnext.aggregate-error");
require("core-js/modules/esnext.promise.any"); at the top of the file (I know should not use
Done at babel/babel#10910 |
This got fixed in babel/babel#10930, thanks for the suggestion of writting them :-) |
core-js/packages/core-js/modules/esnext.promise.any.js
Line 38 in f10bf27
I'm using
Promise.any()
, and when passing my project tests withbabel-jest
I get theTypeError: getBuiltIn(...) is not a constructor
error. Seems like it interpretgetBuiltIn
function as the constructor, instead of respect the parenthesis and use as constructor the result of the call togetBuiltIn('AggregateError')
..babelrc
.browserslist
package.json
The text was updated successfully, but these errors were encountered: