Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with the unpkg line. #14

Open
Chaotic opened this issue Jan 15, 2019 · 2 comments
Open

Issue with the unpkg line. #14

Chaotic opened this issue Jan 15, 2019 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@Chaotic
Copy link
Contributor

Chaotic commented Jan 15, 2019

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/lit-element@0.5.2/lit-element.js?module';

@p1ranha
Copy link

p1ranha commented Jan 23, 2019

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

@nielstron
Copy link

@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.

@iantrich iantrich added the help wanted Extra attention is needed label Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants