-
Notifications
You must be signed in to change notification settings - Fork 711
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
TypeDoc error: ts.isIdentifierOrPrivateIdentifier is not a function #1240
TypeDoc error: ts.isIdentifierOrPrivateIdentifier is not a function #1240
Comments
This is your issue. You ignored the warning about incompatible peer dependencies. You'll need to use an older version of TypeDoc or install a newer version of TypeScript for your project.
|
Okay I updated to the latest typescript version and now I'm getting this error:
|
Looks like Marked broke in 0.8.1 - markedjs/marked#1621 and since it was a patch version it was automatically pulled in. Do you have a HTML comment in a heading somewhere? Removing that should fix this until Marked publishes a fix. |
I couldn't find any HTML comments. Edit: Is there anything I'm missing? |
Hard to say, TypeDoc also reads your |
After removing all content from README.md it suddenly works. |
0.17.2 published, if you upgrade to that your original readme should work :) |
Awesome, problem fixed. |
@Gerrit0 not necessarily user error. There doesn't seem to be a warning for the peer deps when installing: ✭ yarn add -D typedoc
yarn add v1.16.0
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > [email protected]" has unmet peer dependency "webpack@^4.4.0".
warning " > [email protected]" has unmet peer dependency "webpack@>=4.41.1".
warning "react-pose > popmotion-pose > pose-core > [email protected]" has unmet peer dependency "rollup@>=1.26.3".
warning " > [email protected]" has unmet peer dependency "react-router@^5.0.0".
warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning " > [email protected]" has unmet peer dependency "jest@>22".
warning " > [email protected]" has unmet peer dependency "webpack@^4.3.0".
warning " > [email protected]" has unmet peer dependency "jest@>=24 <25".
warning " > [email protected]" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
[4/4] 🔨 Building fresh packages...
success Saved 1 new dependency.
info Direct dependencies
└─ [email protected]
info All dependencies
└─ [email protected]
✨ Done in 12.59s. Yet it still fails: ✭ yarn typedoc --out api-docs src
yarn run v1.16.0
$ ./frontend/node_modules/.bin/typedoc --out api-docs src
Using TypeScript 3.7.5 from ./frontend/node_modules/typescript/lib
./frontend/node_modules/typedoc/dist/lib/converter/context.js:194
return node['name'] && (ts.isIdentifierOrPrivateIdentifier(node['name']) ||
^
TypeError: ts.isIdentifierOrPrivateIdentifier is not a function
... When I add a specific version, or re-install, then it warns: ✭ yarn add -D [email protected]
yarn add v1.16.0
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > [email protected]" has unmet peer dependency "webpack@^4.4.0".
warning " > [email protected]" has unmet peer dependency "webpack@>=4.41.1".
warning "react-pose > popmotion-pose > pose-core > [email protected]" has unmet peer dependency "rollup@>=1.26.3".
warning " > [email protected]" has unmet peer dependency "react-router@^5.0.0".
warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning " > [email protected]" has unmet peer dependency "jest@>22".
warning " > [email protected]" has unmet peer dependency "webpack@^4.3.0".
warning " > [email protected]" has unmet peer dependency "jest@>=24 <25".
warning " > [email protected]" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
warning " > [email protected]" has incorrect peer dependency "typescript@>=3.8.3".
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
success Saved 9 new dependencies.
info Direct dependencies
└─ [email protected]
info All dependencies
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
✨ Done in 13.51s. |
That looks like a bug with yarn ^ |
I have this warning with typedoc : |
Expected Behavior
TypeDoc should generate new documentation for the files in the
src
directory.Actual Behavior
TypeDoc throws an error saying:
Steps to reproduce the bug
npm install typedoc --save-dev
ornpm install typedoc --global
(I tried both of them).typedoc --out docs src
(I also tried using a config file, which led to the same error)Environment
The text was updated successfully, but these errors were encountered: