I encountered this issue when using Rollup with @std/esm. @jdalton pointed me to makeNodeError where it looks like node is making Error.code readonly.
I do not know what the correct standard on the above use of code property on an Error object is so just giving a heads up in case this becomes an issue.
I encountered this issue when using Rollup with
@std/esm. @jdalton pointed me tomakeNodeErrorwhere it looks like node is makingError.codereadonly.I do not know what the correct standard on the above use of
codeproperty on anErrorobject is so just giving a heads up in case this becomes an issue.