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
Using SystemJS v0.19.3 for TypeScript + Cordova project. When I run my builds against windows phone 8.1 or windows phone 10 (physical or emulator) I get a JavaScript runtime error: Unable to load dynamic content
Windows security model appears to prevent SystemJS from running. Specifically, the problem is with document.write('<script type="text/javascript" src="'+o+'system-polyfills.js"></script>')
@guybedford Adding <script src="system-polyfills.js"> before <script src="system.js"> fixes the problem. Tested on emulators and Windows 8 & Windows 10 devices.
Thanks for the help!
Added system-polyfills to platformOverrides.js works well too.
(function () {
// Append the safeHTML polyfill
var scriptElem = document.createElement('script');
scriptElem.setAttribute('src', 'scripts/winstore-jscompat.js');
var scriptElem2 = document.createElement('script');
scriptElem.setAttribute('src', 'scripts/system-polyfills.js');
if (document.body) {
document.body.appendChild(scriptElem);
document.body.appendChild(scriptElem2);
} else {
document.head.appendChild(scriptElem);
document.head.appendChild(scriptElem2);
}
}());
Using SystemJS v0.19.3 for TypeScript + Cordova project. When I run my builds against windows phone 8.1 or windows phone 10 (physical or emulator) I get a
JavaScript runtime error: Unable to load dynamic content
Windows security model appears to prevent SystemJS from running. Specifically, the problem is with
document.write('<script type="text/javascript" src="'+o+'system-polyfills.js"></script>')
There is a shim created to resolve this problem, but it doesn't fix it.: https://github.com/MsopenTech/winstore-jscompat
The text was updated successfully, but these errors were encountered: