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

Packages on CDN are not working? #360

Closed
nguyenlamlll opened this issue Jan 17, 2024 · 1 comment · Fixed by #364
Closed

Packages on CDN are not working? #360

nguyenlamlll opened this issue Jan 17, 2024 · 1 comment · Fixed by #364

Comments

@nguyenlamlll
Copy link

Hi everyone, I'm following the section Visual Diff. I've created a standalone HTML file with the same codes. When I try to run, it does not render anything and it shows this error in the console log

build:jsondiffpatch@v0.6.0-3ZucslcM2zwGnqULgbGl:16 [Package Error] "jsondiffpatch@v0.6.0" could not be built. 
[1/5] Verifying package is valid…
[2/5] Installing dependencies from npm…
[3/5] Building package using esinstall…
Running esinstall...
Cannot find module 'jsondiffpatch/formatters/styles/annotated.css'

It seems that something is wrong on the CDN? If you visit the cdn links directly, you'll see the same errors as well (e.g., this link)

@Methuselah96
Copy link
Collaborator

Methuselah96 commented Jan 17, 2024

Thanks for raising the issue, I'm not sure what's going on there. As a workaround, you should be able to import it from esm.sh using the full file path (i.e. https://esm.sh/jsondiffpatch@0.6.0/lib/formatters/styles/html.css). I'll try to dig into why importing it from jsondiffpatch/formatters/styles/html.css isn't working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants