-
Notifications
You must be signed in to change notification settings - Fork 15
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
Cannot read property 'arguments' of undefined #12
Comments
Happening the same here.
Was trying to troubleshoot here but not sure where to start. I have tried removing the preset extra configs and sourceType but no success. module.exports = function (api) { // eslint-disable-line func-names
api.cache(true);
const presets = [
['@babel/preset-env', {
targets: {
browsers: ['last 2 versions']
},
useBuiltIns: 'usage',
corejs: '3.0.0'
}],
'@babel/react'
];
const plugins = [
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-do-expressions',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-transform-runtime'
];
return {
presets,
plugins,
sourceType: 'module'
};
}; |
Just an update: I have a fix for this in In the meantime, you can disable automatic modernization by passing |
developit
added
bug
Something isn't working
upstream
Blocked on upstream dependency
labels
Feb 2, 2022
@developit, do you have a link to the PR with this fix? Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: