Take note of the timestamp of the blog, but at the moment, there appears to be a bug with Parcel and the latest version of Node as it relates to a dependency of Parcel’s called optimizer-terser.

The bug with Terser appears as such:

🚨 Build failed.

@parcel/optimizer-terser: You must provide the URL of lib/mappings.wasm by calling
SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer

The relevant issue link for this was found here: Parcel Issue #8005 but it’s suggested that the only solution is to roll back to a previous version of Node, 17.x.

If you’re wondering how to do that on MacOS, and you use brew (as most do), this is how. This assumes you are using .bash_profile and that node16 is the latest stable version (at the time of this writing, the latest stable is 18, so 16 would be the next most recent stable version).

brew install node@16
brew unlink node
brew link --overwrite node@16
echo 'export PATH="/usr/local/opt/node@16/bin:$PATH"' >> ~/.bash_profile
node -v

Additionally, if you find yourself needing different versions of Node for different repositories (what if another repo doesn’t have Parcel?), you can use the nvm command to manage different Node versions. I highly recommend it.

References