Excited to use draft for the 1st time, got "Error: no supported languages were detected"

Open
#467 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
cli, devops

Research direction

Reproduce draft create in the listed TypeScript project containing contracts.ts, index.ts, package.json, and tsconfig.json. Start by tracing the language-detection path used by the command; done means this project is recognized as TypeScript and the command offers Dockerfile and deployment-metadata options.

Written by the indexing model from the issue text.

Description

Describe the bug
Running draft create on my very simple Typescript project, created with a standard layout, and I get the error "Error: no supported languages were detected". Typescript is am extremely common server side language

project folder contains contracts.ts index.ts package.json tsconfig.json package-lock.json README.md`

Mention the platform you are using
Ubuntu 22.04.5 LTS
WSL2
draft 0.17.0

To Reproduce
Steps to reproduce the behavior:
run draft create in project folder

Expected behavior
options to create Dockerfile, and deployment metadata

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.5 LTS
  • Browser N/A

Additional context
Add any other context about the problem here.

Dominant language
Go
Stars
644
Forks
74
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/draft

All issues in Azure/draft

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.