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

static project: The repository is missing a package.json file. #1691

Closed
charlesVeneau opened this issue Dec 15, 2021 · 1 comment
Closed

Comments

@charlesVeneau
Copy link

Hello
I've got a 'The repository is missing a package.json file' error.

It's a static project so there is no package.json. Is there a way to open it on stackblitz?

https://stackblitz.com/github/charlesVeneau/Charlesveneau_7_09112021

thank you

@fvsch
Copy link
Contributor

fvsch commented Jun 1, 2022

Hello @charlesVeneau. Thanks for the report!

At this time we are not planning to add support for importing repositories or sub-folders of repositories without a package.json. We're using package.json to help determine the dependencies to be installed.

We could treat a repository or folder without a package.json as a fully static project, but chances are that more often than not it would be a false negative (for example a monorepo setup where the relevant package.json is in a subfolder but the user providing the import URL did not specify a subfolder). So adding a rule of “no package.json = static project” is likely to create more problems than it would solve.

We might revisit this question if there is more demand for this feature, so comments on this issue are always welcome.

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

No branches or pull requests

2 participants