Issue when trying to start parcel development server

According to Devon Govett, the creator of parcel, this issue is related to an upgrade of napi-rs in the @parcel/source-map package, which was released sometime after Parcel 2.2.1. For now, they have reverted this upgrade and published @parcel/source-map v2.0.2.

Once I read about this update, I uninstalled parcel, deleted my .parcel-cache folder, and reinstalled parcel. Now the npx parcel src/index.html command works for me.

Sources:-
https://github.com/parcel-bundler/parcel/issues/7574#issuecomment-1023422239 https://github.com/parcel-bundler/parcel/issues/7598