Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

Not able to load polymer element from remote server in IE #3347

Open prasadprabha opened 5 years ago

prasadprabha commented 5 years ago

I have created a custom element to be used in different applications. The html code I am embedding in the application is

<!DOCTYPE html><script type="module" src="http://localhost:8080\resources\custom-elements-es5-adapter.js"></script><script type="module" src="http://localhost:8080\resources\webcomponents-loader.js"></script><script type="module" src="http://localhost:8080\resources\payment-widget.js"></script><div class="vertical-section-container centered"><payment-widgetcard-number="987">

`

where those js files will be served from the server. This works pretty fine in Chrome however not working in IE 11.

I have created the build with "polymer build". here is my polymer.json file { "entrypoint": "index.html", "shell": "polymer-app-js/payment-widget.js", "sources": [ "polymer-app-js/payment-widget.js", "package.json" ], "extraDependencies": [ "node_modules/@webcomponents/webcomponentsjs/**" ], "builds": [ { "name": "es5prod", "preset": "es5-bundled", "addServiceWorker": true }, { "name": "es6prod", "preset": "es6-unbundled", "addServiceWorker": true }, { "name": "dev", "addServiceWorker": false, "js": {"minify": false, "compile": false}, "css": {"minify": false}, "html": {"minify": false}, "bundle": false, "addPushManifest": false } ], "moduleResolution": "node", "npm": true }

Please help me out

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.