question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin/Preset files are not allowed to export objects, only functions. In /dir...

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

48reactions
loganfsmythcommented, Nov 30, 2018

es2015 is for Babel 6. If you are using Babel 7, you should use { presets: ["@babel/preset-env"] } in your config.

2reactions
shawn-s-feng-njcommented, May 8, 2019

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.

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?

I have the same question, how did you solve it ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preset files are not allowed to export objects - Stack Overflow
js Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions. Does anyone know how to solve this?
Read more >
Plugin/Preset files are not allowed to export objects, only ...
Hello. I am getting this error. I have seen that there is already about this error. I have tried all but not working...
Read more >
React Native Notes 6 : Plugin/Preset files are not allowed to ...
Hey,. “React Native Notes 6 : Plugin/Preset files are not allowed to export objects, only functions…” is published by Kuray Ogun in FreakyCoder...
Read more >
Plugin/Preset files are not allowed to export objects, only ...
Hi there! When I running any tests, i getting: Error: Plugin/Preset files are not allowed to export objects, only functions.
Read more >
Module build failed: Error: Plugin/Preset files are not allowed ...
Plugin /Preset files are not allowed to export objects, only functions. ... Couldn't find preset “env” relative to directory “xxx\\ vue-esig.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found