Questions tagged [jsdelivr]

jsDelivr is a free CDN for developers and webmasters.

jsDelivr is a public open-source CDN where anyone can submit a project to be hosted and delivered by our network. Most people probably know that Google hosts jQuery and a few other popular libraries. However, many more types of projects are allowed, like CSS frameworks, fonts, WordPress plugins etc. And by using GitHub, we allow the community to fully interact with jsDelivr by adding and updating files.

28 questions
6
votes
1 answer

Source map error: Error: request failed with status 404 Resource URL: https://cdn.jsdelivr.net/npm/@barba/core@2.9.7 Source Map URL: barba.umd.js.map

I'm trying to install BarbaJS with a JS bundler for my GitHub-hosted website. Using CDN, I include a line that installs BarbaJS but when I open the website I get a source map error: Source map error: Error: request failed with status 404 Resource…
lam-sauce
  • 61
  • 1
  • 1
  • 2
4
votes
2 answers

Difference in JSDelivr URL with & without "latest"

I went to GitHub issues to raise a support ticket but thought of asking the question first to avoid noise. This is what the docs says- Omit the version completely or use "latest" to load the latest one (not recommended for production…
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
2
votes
0 answers

jsDelivr is not updating

I know same question exists in stack overflow. However they are not properly answered. I uploaded a js from Github to jsDelivr. The one in Github is updated but jsDelivr is not. Example: Github if (event.key === "Enter") { let nn =…
2
votes
1 answer

Is it possible or no to use github private repository for web asset and serve via jsdelivr?

I used github-free account and already know how to access my web asset on github repo-public via jsdelivr, then i want make it private. when i set the repo to private it not work, the assets cannot be accessed "failed to fetch" My idea is : Create…
Alfan
  • 33
  • 4
2
votes
2 answers

What Are the Steps to Move Content from GitHub to JsDelivr?

From what I can tell, the steps to move content from GitHub to JsDelivr are the following: Fork from https://github.com/jsdelivr/jsdelivr to https::/github.com/user/repo_name/, where user is your GitHub user name and repo_name is the name of your…
OrganicCorridor
  • 115
  • 1
  • 7
2
votes
1 answer

Fixing jsDelivr "multiple files" approach that breaks CSS' image URI's

jsDelivr ( http://jsdelivr.com ) has Multiple File mode: https://github.com/jsdelivr/jsdelivr#load-multiple-files-with-single-http-request Problem is, libraries with CSS such as Gritter and Font Awesome use images in their interface…
digitalextremist
  • 5,952
  • 3
  • 43
  • 62
1
vote
0 answers

react native init fails macOS / cdn.jsdelivr.net/

I have been working on react-native for over 2 years with no major issues on windows. I am struggling to make it work on my new Mac. init fails. npx react-native@latest init AwesomeProject [Codegen] Found rncore Fetching podspec for boost from…
Saadalla
  • 73
  • 2
  • 5
1
vote
0 answers

Couldn't find the requested file /check.css in MagnusMarx/NaCL

Here is my repo: https://github.com/MagnusMarx/NaCL My JS files are clearly found, but my css file isn't. jsDelivr says keeps returning "Couldn't find the requested file /check.css in MagnusMarx/NaCL." when I try and use the link for my css file…
1
vote
1 answer

How can I reference a JavaScript file from GitHub in my HTML file?

How can I refer to a JavaScript file from GitHub in an HTML file? I have a JavaScript file. I need to upload it to GitHub and use it in my HTML files also I even edited the JavaScript file it will work in my HTML files with with the latest…
pro prog
  • 11
  • 1
1
vote
0 answers

TypeError: Cannot read properties of null (reading 'useEffect') with remote es module

Error: Description: I am playing with esm.run (es module cdn powered by jsdelivr), I want to import react directly from remote cdn. With the help of importmap, the browser can transform from import React from 'react' to import React from…
Hanwen D.
  • 31
  • 1
  • 1
1
vote
1 answer

Why does code's structure is so different with each CDN in VueJS?

I am so confusing about Vue's structure. First time, I learnt from a video by freeCodeCamp channel on YouTube. After that, I found a book to learn Getting to Know Vue.js Learn to Build Single Page Applications in Vue from Scratch by Brett…
1
vote
0 answers

why doesn't jsdelvr take my latest npm package

I have made an npm package called awesome-react-gamepads and updated the version several times (currently 0.1.2). This is fine and if you use npm you get the latest version however cdn's like jsdelvr do not have even close to the latest version as…
cbutler
  • 833
  • 13
  • 36
1
vote
0 answers

Why some library like Vuetify suggest installing font via CDN in production?

Please see the screenshot or vuetify's docs Vuetify suggests installing their dependency Font via jsdelivr. This makes me very confused, I didn't pay anything to jsdelivr, and I can just use this to my production website? What if my website has…
Joseph
  • 3,974
  • 7
  • 34
  • 67
0
votes
1 answer

Use npm modules in browser js

I had a script that ran well in the JS terminal, but I tried to transfer to the browser and it would not run. I have been trying to figure out how to use npm packages in browser, specifically pythonia, which is necessary for my program. I tried…
0
votes
0 answers

Webpack module rule to serve icons from CDN

My app provides a dropdown of icons. We're using simple-icons, bootstrap-icons, and some custom icons that we developed in-house. Those icons are hosted by our application using a webpack module rule. For example, this is what the rule looks like…
Johnny Metz
  • 5,977
  • 18
  • 82
  • 146
1
2