parcel-bundler/parcel

Different error message for disabled autoinstall

開放

#6,165 建立於 2021年4月22日

 (11 則留言) (1 個反應) (0 位負責人)JavaScript (2,274 個分叉)batch import
:bug: BugAutoinstallGood First Issue✨ Parcel 2

倉庫指標

星標
 (44,030 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

🐛 bug report

At the moment, the error message for parcel build --no-autoinstall and

  • a missing parcel plugin specified in the config that usually would get autoinstalled (e.g. the SASS transformer) or
  • packageManager.resolve and packageManager.require

is just Cannot find module foo, did you mean bar.

In this case, it should say something along the lines of Autoinstall is disabled, please install foo yourself.

Relevant code

https://github.com/parcel-bundler/parcel/blob/3baf990a686d1c1dd0c5f4360296de890cc00c47/packages/core/core/src/loadParcelPlugin.js#L82-L126

貢獻者指南