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

Can't load dependency from cloudflare anymore. #809

Closed
JoshuaHD opened this issue Nov 28, 2018 · 7 comments
Closed

Can't load dependency from cloudflare anymore. #809

JoshuaHD opened this issue Nov 28, 2018 · 7 comments

Comments

@JoshuaHD
Copy link

Before one of the last updates it was possible to load dependencies from Cloudflare. Now the input box for the URL is removed and when i enter the URL into the available textbox i get, not surprisingly, an error message that this is not an existing npm package.

How can i load external files now?

@JoshuaHD
Copy link
Author

JoshuaHD commented Nov 29, 2018

Currently i'm working around this way:

var head = document.getElementsByTagName("head")[0],
    cssLink = document.createElement("link");

cssLink.href = "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.3/semantic.min.css";
cssLink.id="dynamic-css";
cssLink.rel="stylesheet";
cssLink.type="text/css";

head.appendChild(cssLink);

This works but is not as nice as having the link staticly in the head

@lifeinchords
Copy link

lifeinchords commented Mar 26, 2019

The strange part is that for projects I find by googling, the CDN / minified scripts display underneath the form field. I can only delete them, but not add them back or add new URLs.

Example: https://stackblitz.com/edit/box2d
Screen Shot 2019-03-25 at 10 38 17 PM

Am I missing something?

@JoshuaHD
Copy link
Author

Just a guess, check if you can remove them by editing your package.json

@kbrehm0
Copy link

kbrehm0 commented Mar 26, 2019

I can delete the entries under the field dat.gui.min.js etc.
I can't add new ones that are links to URLs and that are not npm packages

@abhilash1in
Copy link

I think that feature no longer exists.

@kc0tlh
Copy link
Collaborator

kc0tlh commented Aug 23, 2023

Update: We will be shipping support for private NPM registries with our upcoming Teams plan later this year which is one path forward for some of these use cases. Stay tuned here for updates on that, and any other news on npm import functionality.

Tagging related issues #36, #437, #540, #823 & #1195

@HeyGarrison
Copy link
Contributor

Just to jump in here... We shipped Private NPM support! You can read more on the docs here: https://developer.stackblitz.com/teams/private-npm-registry-integration#frontmatter-title

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

No branches or pull requests

6 participants