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

"Unable to find any entry points." since 0.24.2 #2243

Closed
RunDevelopment opened this issue Apr 16, 2023 · 7 comments
Closed

"Unable to find any entry points." since 0.24.2 #2243

RunDevelopment opened this issue Apr 16, 2023 · 7 comments
Labels
bug Functionality does not match expectation
Milestone

Comments

@RunDevelopment
Copy link
Contributor

Search terms

0.24.2

Expected Behavior

Installing 0.24.2 should not break the build.

Actual Behavior

PS C:\Users\micha\Git\refa> npx typedoc --treatWarningsAsErrors --logLevel 0
[debug] Reading tsconfig at ./tsconfig.json
[debug] Using TypeScript 5.0.2 from ./node_modules/typescript/lib
[error] Unable to find any entry points. Make sure TypeDoc can find your tsconfig

Steps to reproduce the bug

  1. Download https://github.com/RunDevelopment/refa
    (make sure it's the latest commit: ee63239e81494325acd3149ca2eadda74e76e6b2)
  2. npm ci
  3. Refa currently uses 0.24.1. Run npx typedoc --treatWarningsAsErrors --logLevel 0 to verify that the build works.
  4. npm i -D typedoc@0.24.2
  5. Run npx typedoc --treatWarningsAsErrors --logLevel 0 and get the above error.

Environment

  • Typedoc version: 0.24.2
  • TypeScript version: 5.0.2
  • Node.js version: v16.11.1
  • OS: Win10
@RunDevelopment RunDevelopment added the bug Functionality does not match expectation label Apr 16, 2023
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Apr 16, 2023

Huh, apparently this is a Windows issue :/

@RunDevelopment
Copy link
Contributor Author

It works with 0.24.3. Thank you for fixing it!

@Gerrit0 Gerrit0 added this to the v0.24.3 milestone Apr 16, 2023
@tufcode
Copy link

tufcode commented Apr 16, 2023

Had the same issue, spent hours trying to figure out what was wrong with my config - updating to 0.24.4 fixed it.

@aszx-fyh
Copy link

I work with 0.24.4 ,had the same issue.
npx typedoc src/index.ts --logLevel 1

[warning] No tsconfig file found, this will prevent TypeDoc from finding your entry points.
[debug] Using TypeScript 5.0.4 from ./node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib
[debug] tsconfig appears to be a solution style tsconfig - creating programs for references
[warning] The entry point ./src/index.ts does not exist or is not included in the program for your provided tsconfig.
[error] Unable to find any entry points. Make sure TypeDoc can find your tsconfig

@RunDevelopment
Copy link
Contributor Author

@aszx-fyh This doesn't seem to be the same issue. Please open a new issue.

@aszx-fyh
Copy link

@RunDevelopment
Here is demo.
When I added an empty tsconfig.json in the root directory, it worked.Do i have to have a tsconfig.json?
os: win10
node: v19.8.1

@RunDevelopment
Copy link
Contributor Author

Do i have to have a tsconfig.json?

Yes, I would assume so. The TypeScript compiler has a lot of options that can change the meaning of TypeScript files (e.g. strictNullChecks). So typedoc can't fully know what your .ts files mean without a tsconfig.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality does not match expectation
Projects
None yet
Development

No branches or pull requests

4 participants