You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
background_color is resolved correctly but foreground_color is undefined due to the following:
resolve-external.js
// resolving for foreground_color ends up in the if-block, due to parse call on background_color,
// but the value is undefined
if ($ref) {
// We've already parsed this $ref, so use the existing value
return Promise.resolve($ref.value);
}
parse.js
// parse is called for background_color and adds the path to $refs but the value is `undefined`
// until the promise is resolved
// Remove the URL fragment, if any
path = url.stripHash(path);
// Add a new $Ref for this file, even though we don't have the value yet.
// This ensures that we don't simultaneously read & parse the same file multiple times
let $ref = $refs._add(path);
...
const parser = await parseFile(file, options, $refs);
$ref.value = parser.result;
The text was updated successfully, but these errors were encountered:
Say I have a schema that looks like this:
undefined
due to the following:resolve-external.js
parse.js
The text was updated successfully, but these errors were encountered: