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

AssertionError when building yarn monorepo #5

Closed
MasterOdin opened this issue Nov 16, 2021 · 4 comments
Closed

AssertionError when building yarn monorepo #5

MasterOdin opened this issue Nov 16, 2021 · 4 comments

Comments

@MasterOdin
Copy link

Example repo: https://github.com/bishopcais/io/tree/typedoc-missing-exports (note, the branch is typedoc-missing-exports).

When running yarn docs within the root of that repo, I get the error:

yarn run v1.22.10
$ typedoc
Info: Loaded plugin typedoc-plugin-missing-exports
TypeDoc exiting with unexpected error:
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

  assert(parentSymbol)

    at isInherited (/Users/mpeveler/code/github/bishopcais/io/node_modules/typedoc/dist/lib/converter/symbols.js:531:5)
    at Object.convertProperty (/Users/mpeveler/code/github/bishopcais/io/node_modules/typedoc/dist/lib/converter/symbols.js:319:9)
    at convertSymbol (/Users/mpeveler/code/github/bishopcais/io/node_modules/typedoc/dist/lib/converter/symbols.js:120:88)
    at Converter.convertSymbol (/Users/mpeveler/code/github/bishopcais/io/node_modules/typedoc/dist/lib/converter/converter.js:45:37)
    at onResolveBegin (/Users/mpeveler/code/github/bishopcais/io/node_modules/typedoc-plugin-missing-exports/index.js:45:47)
    at triggerEvents (/Users/mpeveler/code/github/bishopcais/io/node_modules/typedoc/dist/lib/utils/events.js:191:43)
    at triggerApi (/Users/mpeveler/code/github/bishopcais/io/node_modules/typedoc/dist/lib/utils/events.js:167:13)
    at eventsApi (/Users/mpeveler/code/github/bishopcais/io/node_modules/typedoc/dist/lib/utils/events.js:60:18)
    at Converter.trigger (/Users/mpeveler/code/github/bishopcais/io/node_modules/typedoc/dist/lib/utils/events.js:389:13)
    at Converter.resolve (/Users/mpeveler/code/github/bishopcais/io/node_modules/typedoc/dist/lib/converter/converter.js:199:14) {
  generatedMessage: true,
  code: 'ERR_ASSERTION',
  actual: undefined,
  expected: true,
  operator: '=='
}
error Command failed with exit code 6.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This sounds like a similar error as #4, but opened a new issue as did not want to piggy back off it like I did in #3 in case they are different. Feel free to close as a duplicate though.

@MasterOdin MasterOdin changed the title AssertionError when building monorepo AssertionError when building yarn monorepo Nov 16, 2021
@Gerrit0
Copy link
Owner

Gerrit0 commented Nov 24, 2021

Wow, well tracking that one down was an adventure... This is crashing because of how Date is declared in @types/node version 12... it won't show up with @types/node v16

@Gerrit0
Copy link
Owner

Gerrit0 commented Nov 25, 2021

Shoot. That fix got the first crash, but there's another later on for presumably a similar reason.

@Gerrit0 Gerrit0 reopened this Nov 25, 2021
@Gerrit0
Copy link
Owner

Gerrit0 commented Nov 25, 2021

Not really happy with the fix in bf41de3, but it works...

@Gerrit0 Gerrit0 closed this as completed Nov 25, 2021
@MasterOdin
Copy link
Author

Thanks for the fix! It has worked great for me so far.

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

2 participants