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
Hi, really new to JSII and well most of this in general so sorry if this is a basic question.
My class has an async function that returns a promise of a class instance. The code compiles and packages fine, however, when I try to access any attributes or members it fails saying 'AttributeError: 'ObjRef' object has no attribute 'member/attr__name''
guidanceQuestion that needs advice or information.
1 participant
Converted from issue
This discussion was converted from issue #2905 on March 31, 2022 23:39.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
❓ Guidance
Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)Go
General Information
The Question
Hi, really new to JSII and well most of this in general so sorry if this is a basic question.
My class has an async function that returns a promise of a class instance. The code compiles and packages fine, however, when I try to access any attributes or members it fails saying 'AttributeError: 'ObjRef' object has no attribute 'member/attr__name''
Printing the object out, displays;
And example code in TS:
Probably misunderstanding something here, so any help/advice is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions