-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]Error in AdaptiveCards Templating SDK: Cannot Read Properties of Undefined ('Expression') #9078
Comments
@xiaolufei - Thank you for bringing this issue to our attention. Can you confirm whether you plan to display this adaptive card on the Teams platform? |
@Nivedipa-MSFT Yes, I plan to display this adaptive card on the Teams platform. |
@xiaolufei - Thanks for the confirmation. We were able to reproduce the issue. While we cannot guarantee a fix at this stage, we will keep you updated with any progress or changes. Please note that in some cases, the bug may be by design or deprioritized due to platform updates, but we will continue to monitor the bug closely. Thank you again for your cooperation! |
@Nivedipa-MSFT I hope you can resolve this issue as soon as possible. Currently, this problem is blocking our work and causing our card data to fail to render. |
@Nivedipa-MSFT we are also getting same error and couldn't find any adaptive-expression CDN path. Tried with below but still same error <script src="[https://cdn.jsdelivr.net/npm/[email protected]/dist/index.min.js"></script>](https://cdn.jsdelivr.net/npm/[email protected]/dist/index.min.js%22%3E%3C/script%3E) |
@Nivedipa-MSFT any updates on this? |
I was having a similar error to the error above and so I tried to see if I can replicate above error. I was able to replicate the above error, whether or not I have the Hopefully this helps shed some light on the issue |
Target Platforms
Other
SDK Version
2.3.1
Application Name
adaptivecards-templating
Problem Description
I encountered an issue where properties in the JavaScript version of the AdaptiveCards Templating SDK are undefined.
How can I resolve this issue?issue-adaptive-cards-sdk.docx
Screenshots
Card JSON
Sample Code Language
JS
Sample Code
<title>Adaptive Card with Expressions</title>Adaptive Card with Dynamic Expression
<script src="https://unpkg.com/[email protected]/dist/adaptivecards.min.js"></script> <script src="https://unpkg.com/adaptivecards-templating/dist/adaptivecards-templating.min.js"></script> <script> // Define the Adaptive Card template const cardTemplate = {"type":"AdaptiveCard","version":"1.0", "body":[ {"type":"TextBlock","text":"Hello ${name}!"}, {"type":"TextBlock","text":"=if(age >= 18, 'You are an adult.', 'You are a minor.')"}]}; // Define dynamic data (this could come from an API or user input) const dynamicData = {"$root":{"name":"John","age":25}};The text was updated successfully, but these errors were encountered: