Parsing Error when using Nullish Assignment (??=)
Author: stephen-j-olearyCreated Feb 24, 2022Updated Jun 19, 2025
I'm getting the following error when attempting to bundle my project.
Error: Parsing file /path/to/file.js: Unexpected token (13:22)
I've traced the error to a Nullish Assignment (??=) . Changing that line to a regular assignment allows the project to build without any errors.
Is there any way to add support for this type of assignment operator or should I just avoid using it?
Thanks
Source: browserify/browserify