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

The file does not contain a sourceMappingURL #1952

Closed
jlarmstrongiv opened this issue Jun 20, 2022 · 3 comments
Closed

The file does not contain a sourceMappingURL #1952

jlarmstrongiv opened this issue Jun 20, 2022 · 3 comments
Labels
bug Functionality does not match expectation
Milestone

Comments

@jlarmstrongiv
Copy link

jlarmstrongiv commented Jun 20, 2022

Search terms

Error: The file does not contain a sourceMappingURL
Error: Could not determine TS entry point for package package.json

Expected Behavior

I expect tsdoc to compile like it normally does after migrating to https://www.typescriptlang.org/docs/handbook/esm-node.html#new-file-extensions

Actual Behavior

In monorepo mode only, tsdoc fails to find the entry point

Error: The file /absolute/path/to/src/index.d.cts does not contain a sourceMappingURL
Error: Could not determine TS entry point for package /absolute/path/to/package.json

Steps to reproduce the bug

Create a monorepo with a package with two files—index.cjs and index.d.cts (instead of index.d.ts)

Have the typedocMain point to the index.d.cts file

Use the monorepo mode NODE_OPTIONS=--max_old_space_size="16384" npx typedoc --out "$monorepo_path/docs" --excludeExternals --entryPointStrategy packages 'packages/*'

Environment

  • Typedoc version: 0.22.17
  • TypeScript version: 4.7.4
  • Node.js version: v16.15.0
  • OS: both MacOS and Linux
@jlarmstrongiv jlarmstrongiv added the bug Functionality does not match expectation label Jun 20, 2022
@Gerrit0 Gerrit0 added needs reproduction Needs a minimal reproducible case and removed needs reproduction Needs a minimal reproducible case labels Jun 20, 2022
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Jun 20, 2022

Shoot. I missed a couple regexes.

@Gerrit0 Gerrit0 added this to To do in TSDoc - v0.23 via automation Jun 20, 2022
@Gerrit0 Gerrit0 moved this from To do to Done in TSDoc - v0.23 Jun 20, 2022
@Gerrit0 Gerrit0 added this to the v0.23 milestone Jun 20, 2022
@jlarmstrongiv
Copy link
Author

Awesome 😄 thanks for the fix @Gerrit0 does the latest beta have these changes? I've been meaning to upgrade and try the new theme anyway

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Jun 21, 2022

Not yet! It should by Wednesday though... would like to get at least a couple mote of the TODOs done, aiming for a full release next weekend.

@Gerrit0 Gerrit0 mentioned this issue Jun 25, 2022
8 tasks
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
No open projects
Development

No branches or pull requests

2 participants