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
Plugin/Preset files are not allowed to export objects, only functions. In /dir... #165
Comments
Essentially what this means is that one of your presets isn't compatible with Babel 7. I'd look through and if there are any |
but I have not changed anything on like 4 different local apps and suddenly all of them are getting that error when I gulped. They had been working and nothing has also at work I have the same setup. |
Did you intend to use Babel 7? That error implies that you're using Babel 7, so if you didn't upgrade on purpose, something in your configuration must have changed somewhere. It is hard to say more without knowing your dependencies and build steps though. |
Nothing has changed in the project is weird here at home like I said 4 different apps and at work one, first I got this at work today, and when I get home I gulp on a similar setup and same error. Anyways let take a look at what you are saying regarding babel version. I have this
|
That configuration is definitely not right.
are both Babel 6, so they definitely won't work with What is your Babel config? It'd either be a |
|
|
Make sure you are not using both v7 and v6 branch og babel. The "@babel/core" is the 7x branch and the "babel/core" is the 6x branch, you should not have both installed at once! |
I have the same question, how did you solve it ? |
As @loganfsmyth said, if you are using Babel core v7 use |
Using node 10.11.0
Gulp 4
I get this error
Plugin/Preset files are not allowed to export objects, only functions. In /dir...
I have not made any changes to NPM or gulp and getting this on several projects that I run Gulp 4 and gulp-babel.
Can anyone tell me what I need to do?
The text was updated successfully, but these errors were encountered: