Closed alechp closed 6 years ago
Any advice on how to get around this?
Seems to stem from Babel 6 (Backpack) & Babel 7 (Ava) incompatibility
Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions. In /...path.../node_modules/backpack-core/babel.js
Plugin/Preset files are not allowed to export objects, only functions. · Issue #6808 · babel/babel · GitHub
This thread shows how to fix this error (ie. just upgrade babel from 6 -> 7)
Getting ready for Babel 7 · Issue #1598 · avajs/ava · GitHub
Relevant Ava plugins for Babel 7
Migration of Babel 7.x · Issue #106 · jaredpalmer/backpack · GitHub
Backpack thread about v0.8.0-0
Plugin/Preset files are not allowed to export objects, only functions
Found this duplicate after creating this issue
.babelrc
{ "presets": [ "backpack-core/babel", "@ava/stage-4", "@ava/transform-test-files" ] }
As suggested here, tried to see if forcing babel-preset-back from version 0.5.0 to 0.8.0-0 would resolve the issue. But still receiving the issue.
Sample repo of Ava working with Babel 7: https://github.com/servexyz/npm-starter
hello there, any update? how did you solve this?
Any advice on how to get around this?
Error
Backpack Core versions tried
Relevant Resources
Plugin/Preset files are not allowed to export objects, only functions. · Issue #6808 · babel/babel · GitHub
Getting ready for Babel 7 · Issue #1598 · avajs/ava · GitHub
Related Issues
Migration of Babel 7.x · Issue #106 · jaredpalmer/backpack · GitHub
Plugin/Preset files are not allowed to export objects, only functions
Config
.babelrc
Looking for a hack-through
As suggested here, tried to see if forcing babel-preset-back from version 0.5.0 to 0.8.0-0 would resolve the issue. But still receiving the issue.
Control group
Sample repo of Ava working with Babel 7: https://github.com/servexyz/npm-starter