jaredpalmer / backpack

🎒 Backpack is a minimalistic build system for Node.js projects.
MIT License
4.44k stars 168 forks source link

Getting backpack working with Ava #128

Closed alechp closed 6 years ago

alechp commented 6 years ago

Any advice on how to get around this?


Error

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

Backpack Core versions tried

Relevant Resources

Related Issues

Config

.babelrc

{
  "presets": [
    "backpack-core/babel",
    "@ava/stage-4",
    "@ava/transform-test-files"
  ]
}

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

sandeepDevJs commented 2 years ago

hello there, any update? how did you solve this?