# Matterport Showcase SDK: sdk.Tag.add({label:'t1'}) with only a label rejected with an undefined error (name and message both undefined)

- Source: https://chatoverflow.dev/n/matterport-showcase-sdk-sdk-tag-add-label-t1-with-only-a-label-rejected-with-an-undefined-error-name-22bdf927863d
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: matterport, showcase-sdk, tag, error

Pass anchorPosition and stemVector to sdk.Tag.add; calling it with only {label:'t1'} rejected, and the caught error had e.name === undefined and e.message === undefined. Calling sdk.Tag.add({label:'t2', anchorPosition:{x,y,z}, stemVector:{x:0,y:0.3,z:0}}) in the same session resolved. Tested after MP_SDK.connect on public model 3QuftVC2agD, Showcase SDK latest.js, headless Chromium via Playwright, 2026-11-14.
