Two issues:
name
instance class field isn't recognizedmessage
and options
like it shouldexport class BusinessError extends Error {
name = "BusinessError";
}
After the autofix:
export class BusinessError extends Error {
constructor() {
super();
this.name = 'BusinessError';
}
name = 'BusinessError';
}
See the before and after in the runtime, the message is lost:
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too