Closed kamack38 closed 2 years ago
You can also use dynamic import() which is supported in both CommonJS and ES modules.
@kamack38 Thanks for your report. you can downgrade version to 1.0.15 temporarily. I will work on fixing this right now
@kamack38 It should be fixed on 1.0.17. I downgrade the dep's version. Initially, I plan to support node ESM in this lib (inquirer-file-tree-selection). But it seems InquirerJS
itself does not support ESM
, so leave it to one day when InquireJS
supports ESM.
Will this change since inquirer now uses ESM in the newest version?
Inquirer v9 and higher are native esm modules, this mean you cannot use the commonjs syntax require('inquirer') anymore.
@rclarkem-fubotv Good to hear that inquirer supports ESM now, I will adapt ESM module too. Reopen this issue for tacking purpose
Hello @rclarkem-fubotv, I just released version 2.0.0, enhanced the ESM support. You can reach out here for examples. Hope you enjoy with it, and look forward to your feedback.
I will close this issue, if you encounter any problem, feel free to open a new issue to let me fix it. 😄
Hello @rclarkem-fubotv, I just released version 2.0.0, enhanced the ESM support. You can reach out here for examples. Hope you enjoy with it, and look forward to your feedback.
I will close this issue, if you encounter any problem, feel free to open a new issue to let me fix it. 😄
Dude (or Dudette), You are awesome! 🔥👍
Thanks!
You are using an ESM package (
chalk
) withrequire()
. If you want to keep usingrequire
instead of ESM you'll have to use Chalk 4.Read more Chalk 5 changelog
Log output: