Codesandbox-client: Support github dependencies in npm

Created on 3 Nov 2017  Â·  9Comments  Â·  Source: codesandbox/codesandbox-client

How would I install dependency from github, npm supports this, but I can't do this in codesandbox

🤔 Improvement

Most helpful comment

Would be great to be able to add the branch|tag|commit like this:
userName / repo #branch

All 9 comments

Ah, yes I haven't tested this fully. I can work on this the coming week 😄

It can't install from master?

Hey! Do you have an example sandbox? It works for me.

Hi, has this been pushed to http://codesandbox.io or is it only available in a self-hosted client? I am trying to import http://github.com/washingtonsteven/react-json-component (at release 0.1.0) and getting an error that the release can't be found.

Sandbox: https://codesandbox.io/s/pwlxp2yj8j

Note, jsdelivr seems to find it: https://cdn.jsdelivr.net/gh/washingtonsteven/[email protected]/

Hey Steven, I believe that it should be specified differently in
package.json to work. I forked it and made the change and it works for me
now: https://codesandbox.io/s/1810xvpqyj.

On Tue, Mar 6, 2018 at 7:45 PM Steven Washington notifications@github.com
wrote:

Hi, has this been pushed to http://codesandbox.io or is it only available
in a self-hosted client? I am trying to import
http://github.com/washingtonsteven/[email protected]
https://github.com/washingtonsteven/[email protected] and
getting an error.

Sandbox: https://codesandbox.io/s/pwlxp2yj8j

—
You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
https://github.com/CompuIves/codesandbox-client/issues/278#issuecomment-370885423,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAj1CKmhPF8uFoZXT3Y5njRcEN5mpW7Pks5tbtkwgaJpZM4QRq1L
.

Oh I see, I was using the Add Dependency button and having trouble there. Thanks, editing package.json directly fixed it.

Would be great to be able to add the branch|tag|commit like this:
userName / repo #branch

up, any chance to add the branch|tag|commit like this:
userName / repo #branch
?

Further to the above, is there a way to specify a path too for monorepos?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

donavon picture donavon  Â·  3Comments

Haroenv picture Haroenv  Â·  3Comments

NataliaTepluhina picture NataliaTepluhina  Â·  3Comments

k15a picture k15a  Â·  3Comments

faceyspacey picture faceyspacey  Â·  3Comments