now-sdk transform fails on key-shadowed deleted records #83
Unanswered
DanielMadsenDK
asked this question in
Help and Questions with SDK or Fluent
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
now-sdk transformfails on key-shadowed deleted recordsEnvironment
4.7.2Description
Executing
now-sdk transformfails with a fatal error:Tried to check for equality before committing, but the target node (Block) could not be parsedwhen an active metadata record shares a name with a previously deleted record.Root Cause
deleted: trueshares a name with a newly active record, the SDK incorrectly resolves the active record's name to the deleted record's ID..now.tsmetadata block referencing the old ID inNow.include()(e.g.,Now.include('./sn_aia_tool_[DELETED_ID].js')). It does not write the corresponding JS file because it generates the active one instead.Steps to Reproduce
sn_aia_tool) asdeleted: truewithin keys.ts.sys_id.now-sdk transform.Failure Stack-trace
Recommended Remediation
deleted: true.Committer.jsto log a warning instead of completely crashing the execution when a source code file referenced inNow.include()cannot be found on disk.Beta Was this translation helpful? Give feedback.
All reactions