Upgraded to now-sdk v4.0.0 - Now seeing [Plugin "ViewPlugin" failed to inspect shape "Record" error]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
I recently upgraded my sdk version to 4.0.0 and am now seeing this error more often:
[now-sdk] ERROR: Plugin "ViewPlugin" failed to inspect shape "Record": Product origin is not a node
It appears to show up when I do a "now-sdk transform" and a "now-sdk transform --from metadata/update"
I was curious if anyone has seen similar issues/knows how to resolve this?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
Hi @Brady Holliday,
This error commonly appears during a now-sdk transform and indicates that the SDK's "ViewPlugin" cannot resolve the origin or dependency tree for a component's view metadata, often due to changes in how the newer SDK version processes component relationships and project structures.
To resolve this, ensure all your custom components have explicitly defined view and property structures that conform to the latest SDK requirements, check for and correct any broken or circular dependencies in your project's component hierarchy, and consider running a clean build or clearing the Now SDK cache (now-sdk cache clean) to eliminate any artifacts from previous versions that might be causing conflicts with the updated transformation logic.
Try this, hope it'd help!
Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hi Brady,
The ViewPlugin processes sys_ui_view records, are you able to find the one that is causing a problem in your metadata/update folder for me to inspect? Must be something in it we have not seen before. You can attach it here on a reply if that works (check it for sensitive data before).