Error running tests - Preset Files not allowed to export objects

So is there a known fix? I tried to reinstall node to v 11.10.1 and it didn’t resolve the issue. I was running v10.15.3. Same errors.

Anything new about that error…can not run the unit test as I get that error:

npm test -t connection-pooling

jest --passWithNoTests “connection-pooling”

Error: Plugin/Preset files are not allowed to export objects, only functions. In C:\Users\kkk\Downloads\mflix-js\node_modules\babel-preset-stage-1\lib\index.js

npm ERR! Test failed. See above for more details.

1 Like

I’m also having this same issue. Anyone?

Which ticket are you trying to complete?

nm, figured it out. anyone having this issue should refer to the post about babel errors. It’s a version issue.

That’s great but please include links to the post that fixes this. There are too many complaints out there for this issue.


I solved the same issue modifying file .babelrc with this:

“presets”: [
“plugins”: [
“test”: [

Try it.