peterpeterparker/stylo

CDN link is broken

Closed this issue ยท 7 comments

Expected Behavior

The CDN url (https://unpkg.com/@papyrs/stylo@alpha/dist/stylo/stylo.esm.js) seems to be broken.

Screenshots

Screen Shot 2022-02-23 at 11 23 50 AM

Yeah my bad I actually never went with "alpha" tag to npm but only regular version ๐Ÿ˜…

Following is correct:

https://unpkg.com/@papyrs/stylo@latest/dist/stylo/stylo.esm.js

Where did you find the CDN url you are mentioning? Happy to fix the reference.

Perfect - thanks!

I found the link in the repo README: https://github.com/papyrs/stylo

Thanks. Fixed with commit d8ac043

Hey sorry, when I attempt to load from the CDN I'm now seeing this error in my console:

SyntaxError: Unexpected token '{'. import call expects exactly one argument.

what kind of project? vanilla, react, svelte, etc?
how to you import the component? import ... or <script ...?

Script tag - and I just realized I didn't have the script 'type' set as 'module' ๐Ÿคฆ๐Ÿปโ€โ™‚๏ธ. My bad - thanks!

Coolio if it works out