circle-sensor-card icon indicating copy to clipboard operation
circle-sensor-card copied to clipboard

Issue with the unpkg line.

Open Chaotic opened this issue 6 years ago • 2 comments

The ‘^’ from line 3 in the url (next to the version number 0.5.2) needs to be removed.

} from 'https://unpkg.com/@polymer/lit-element@^0.5.2/lit-element.js?module';

becomes

} from 'https://unpkg.com/@polymer/[email protected]/lit-element.js?module';

Chaotic avatar Jan 15 '19 16:01 Chaotic

It didn't solve the "custom element doesn't exist" error for me :(

p1ranha avatar Jan 23 '19 12:01 p1ranha

@p1ranha For me, the issue with "custom element doesn't exist" was fixed by allowing scripts from unpkg.com in my browser (yes, a local change, nothing to do with the script)

Check the browser javascript console for Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://unpkg.com/@polymer/lit-element@%5E0.5.2/lit-element.js?module. (Reason: CORS request did not succeed).. If you see this line, you need to enable cross origin requests.

nielstron avatar Mar 05 '21 10:03 nielstron