import-js: ERROR: The 'decorators' plugin requires a 'decoratorsBeforeExport' option

Got this error with node version:

⇒  node -v
v10.9.0
⇒  npm -v
6.2.0
⇒  importjs --version
3.1.0

Error Message

⇒  ./importjs.js fix ~/www/src/Components/FavoriteITem/FavoriteItem.component.js
Error: The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean.

Current Solution

  • Installed the version 3.0.0

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 4
  • Comments: 16 (2 by maintainers)

Commits related to this issue

Most upvoted comments

any ideas about how to set that decoratorsBeforeExport value in webpack.config?

quick report: merging wyuenho’s changes combined with: ln -s import-js/node_modules/sqlite3/ sqlite3/ from my .atom/packages directory has fixed the issue for me!

I would love to help debug, but I have no clue what info would help!

I am running a meteor project (and meteor seems to have a quite interesting relationship with babel) but the most weird thing is that my colleague (in the same repo with mostly the same plugins) can upgrade to 0.15.0 but i needed to downgrade to avoid this error.

Let me know what stack traces you need and what other info and I can try to provide it…

Cheers!