Forum Discussion
Anonymous
Mar 03, 2023Adaptive Card Templating for JavaScript @ 2.3.1
Hello all, I am desperately trying to use the latest version of the module adaptivecards-templating --> https://www.npmjs.com/package/adaptivecards-templating?activeTab=versions. So far I used...
Sayali-MSFT
Microsoft
Mar 03, 2023Deleted - Thanks for reporting your issue.
We will check this at our end and will get back to you.
We will check this at our end and will get back to you.
- Sayali-MSFTMar 06, 2023
Microsoft
Deleted -As per Document, Before version 2.0, the adaptivecards-templating package embedded a full copy of the adaptive-expressions package. This model didn't allow an application to use Adaptive Card templating with a more recent version of adaptive-expressions, and bug fixes in adaptive-expressions would always have to be accompanied with a new release of the adaptivecards-templating package.
From version 2.0 on, adaptivecards-templating doesn't embed adaptive-expressions anymore, and it is the responsibility of the consuming application to explicitly load this package.
Ref Document-https://www.npmjs.com/package/adaptivecards-templating- AnonymousMar 06, 2023
Sayali-MSFT , thank you for your reply.
Yes - that is how it was described and of course I am aware of it. My question is in the direction of how I can include the adaptive-expressions and so also use it with adaptivecards-templating. Simply adding adaptive-expressions with npm does not work. It would be very helpful if I have an example of this.Currently this is my configuration of the modules
I include the modules in the HTML page as follows.
It is not clear to me now if I have to include the adaptive-expressions explicitly? In the TS code I have seen that actually the adaptive-expressions is automatically included via import. However, also an attempt to include the module adaptive-expressions manually did not bring the desired success.
- AnonymousMar 15, 2023can no one help me?
Probably I'm just doing something wrong!
Would be grateful for any help. Also gladly an example code.
I suspect I'm just doing something wrong when including adaptive-expressions. In the code an exception is generated when addressing the instance AES.