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

Importing a static project from github is not possible (missing package.json) #1393

Closed
wisammechano opened this issue Feb 25, 2021 · 2 comments

Comments

@wisammechano
Copy link

I am trying to import a GitHub repo that has only HTML, CSS, and Markdown files to stackblitz.com using the link stackblitz.com/github/{GH_USERNAME}/{REPO_NAME} but I get an error saying the project is missing package.json file

@thescientist13
Copy link

thescientist13 commented Jun 19, 2021

Also having the same experience. This is what it looks like currently, for reference.

stackblitz-package-json


Thinking on it a bit, aside from making it optional to require a package.json, is that having the option to npm init would be super nice too, so you can just go right from a bare repo in GitHub to working directly in Stackblitz! 🌟

Otherwise (if wanting to be / stay totally "browserfull") you would have to manually create the package.json in GitHub first through their GUI.

@fvsch
Copy link
Contributor

fvsch commented Jun 1, 2022

Hi @wisammechano, thanks for the report!

We'd like to keep the strict condition of having a package.json at the root of the repository or sub-folder that you're trying to import as a StackBlitz project. See #1691 (comment) for our reasons.

@fvsch fvsch closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2022
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

3 participants