question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[IE11][adaptivecards-templating ] [IE11 not working]

See original GitHub issue

Platform

  • JavaScript

Author or host

IE11

Version of SDK

“name”: “adaptivecards-templating”, “version”: “1.1.0”,

Details

When using adaptive-cards-templating in IE11. It crashes with Accessing the ‘caller’ property of a function or arguments object is not allowed. Only happens when I import adaptive-cards-templating.

Also using the example https://github.com/microsoft/AdaptiveCards/blob/main/source/nodejs/adaptivecards-templating/example.html it seems not to work in IE11.

This is how i’m using adaptive-cards-templating.

` import * as AdaptiveCards from ‘adaptivecards’; import * as ACData from ‘adaptivecards-templating’;

function getAdaptiveCard({ schema, data = {}, hostConfig = {} }) { const template = new ACData.Template(schema);

const card = template.expand({
	$root: data
});

const adaptiveCard = new AdaptiveCards.AdaptiveCard();

adaptiveCard.hostConfig = new AdaptiveCards.HostConfig(hostConfig);
adaptiveCard.parse(card);

return adaptiveCard.render();

}

export default getAdaptiveCard; `

The thing is that if I don’t import adaptive-cards-templating and it’s not being used it works perfectly in IE11.

It works great on chrome.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dclauxcommented, Aug 19, 2020

Ah - the problem actually comes from the Adaptive Expressions library which adaptivecards-templating depends on. AEL compiles to ES6 with no plan to change its target to ES5. Unfortunately that makes it (and by extension the adaptivecards-templating library) incompatible with/unsupported on IE11.

I am sorry, but I am afraid I don’t have a solution here.

1reaction
dclauxcommented, Aug 18, 2020

@cavr could you by any chance paste a picture of the IE debug console so I can see exactly what error occurs?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Element is not working in IE 11 after transpiling
To make it work in IE 11, I have used document-register-element polyfill and it transpiles the file successfully. I don't get any errors...
Read more >
Install problems with Internet Explorer 11
In the Control Panel, open the Programs and Features box, scroll down to IE11, and then click Uninstall. After the uninstall finishes, restart ......
Read more >
Issue with Pop-up window, on Internet Explorer 11. | Discussions
We are having issues with pop-up on IE 11, it comes up as a blank window. But it works on Chrome and Firefox....
Read more >
ie11 fails to load flash
Solved: Ok so im having a major problem with my flash player.it says its installed but shock wave doesn't show up in my...
Read more >
IE11 renders elements with border-radius incorrectly
This is a bug in IE11 that is is signaled several times in Microsoft Connect, but it does not seem as if Microsoft...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found