TypeDoc suddenly stops working upon launch

When I run the following command:

typedoc --out ./typeDocDocs ./src

An error message is displayed with no clear solution:

Using TypeScript 3.2.4 from MY_PROJECT_PATH\node_modules\typescript\lib
MY_PROJECT_PATH\node_modules\typedoc\dist\lib\converter\context.js:194
    return node['name'] && (ts.isIdentifierOrPrivateIdentifier(node['name']) ||
                               ^

TypeError: ts.isIdentifierOrPrivateIdentifier is not a function
at isNamedNode (MY_PROJECT_PATH\node_modules\typedoc\dist\lib\converter\context.js:194:32)
at Context.getSymbolAtLocation (MY_PROJECT_PATH\node_modules\typedoc\dist\lib\converter\context.js:47:24)
at Object.createDeclaration (MY_PROJECT_PATH\node_modules\typedoc\dist\lib\converter\factories\declaration.js:61:32)
at ClassConverter.convert (MY_PROJECT_PATH\node_modules\typedoc\dist\lib\converter\nodes\class.js:28:34)
at Converter.convertNode (MY_PROJECT_PATH\node_modules\typedoc\dist\lib\converter\converter.js:116:53)
at MY_PROJECT_PATH\node_modules\typedoc\dist\lib\converter\nodes\block.js:58:32
at Array.forEach (<anonymous>)
at BlockConverter.convertStatements (MY_PROJECT_PATH\node_modules\typedoc\dist\lib\converter\nodes\block.js:56:29)
at MY_PROJECT_PATH\node_modules\typedoc\dist\lib\converter\nodes\block.js:43:26
at Context.withScope (MY_PROJECT_PATH\node_modules\typedoc\dist\lib\converter\context.js:108:9)

The TypeDoc version being used is 0.17.1

If anyone has encountered this issue and can offer help in resolving it, I would greatly appreciate it.

Answer №1

Seems like there is a compatibility issue with the latest TypeScript version that has emerged recently.

After some investigation, I found out that the problem lies in v0.17.0, so if you revert back to an older release, it should work fine. My setup was successful using

npm i -D <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1a6e636a7f7e75795a2a342b2c342b2b">[email protected]</a>
.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Ensure that Vuex state can only be accessed through a getter function

Our goal is to have a variable in our Vuex store that can only be accessed through the getter function. To do this, we must ensure that the variable is protected from external access outside of the store. What options are available to us? ...

To enhance VS IntelliSense and type checking in react-intl's FormattedMessage component, assign an id that aligns with a custom TypeScript interface

Due to the limitations of react-localization in terms of date and number formats, as well as its heavy reliance on a single developer, our team made the decision to transition to react-intl for a more stable long-term solution. Check out the contributors ...

The inclusion of individual CSS files in a TypeScript React project does not have any effect

My issue involves creating a new react project with typescript and adding a custom component with a separate CSS file for styling. The folder structure is as follows: https://i.sstatic.net/UNtEP.png In the Header.css file, I have defined a class: .mainHe ...

Showing a div based on the selection of multiple options from a multiselect

I am having trouble implementing a show/hide functionality based on a multiselect dropdown in my Angular and Typescript project. Specifically, I want to display a div with another dropdown menu when the user selects a certain option from the multiselect ...

Add a class individually for each element when the mouse enters the event

How can I apply the (.fill) class to each child element when hovering over them individually? I tried writing this code in TypeScript and added a mouseenter event, but upon opening the file, the .fill class is already applied to all elements. Why is this ...

Methods in Ionic to call an external JavaScript file from TypeScript

Having a JSON list stored in a JavaScript file, my objective is to filter it using TypeScript before sending the filtered results to the HTML homepage. However, I encountered an issue within the HTML file. It's worth mentioning that when running the ...

The functionality of the Auth0 Logout feature has ceased to work properly following the

Previously, the code worked flawlessly on Angular version 14. However, after updating to version 17 due to persistent dependency issues, a problem arose. logout(): void { sessionStorage.clear(); this.auth.logout({ returnTo: window.location.origin } ...

React typescript is handling various promise response types, causing strange behavior in type-checking

I recently started utilizing the and I seem to be encountering a perplexing issue. If further context is needed, please let me know and I will provide it. All the necessary functions and types are mentioned below my explanatory paragraphs. Your assistance ...

A tutorial on how to customize the hover effect for TableHead Column Identifiers in MaterialUI by adjusting

I'm struggling to customize the appearance of child th elements using the TableHead component from MaterialUI. While I've been successful in modifying various properties, I'm facing difficulty in changing the hover color. Below is the snipp ...

Troubleshooting Typescript References

Currently, I have a web application that conducts basic analytics on user-imported data. Users can map columns and view property information on a map, as well as various statistics related to the properties. We are in the process of implementing a new fea ...

When an abstract method is invoked within the constructor of an abstract class, it does not have access to properties of

This code snippet is supposed to display 'Hello World!' on the screen, but instead it shows an error message: Error: Cannot read property 'id' of undefined. What could be the reason behind this issue? abstract class Parent { construc ...

Struggling to retrieve the value of a variable from a service in Angular

In my application, I've implemented a cookie checking service to monitor the status of my cookie consent popup: @Injectable() export class CookieCheckService implements OnInit, OnDestroy { public hasConsented = false; private cookieStatusChangeSu ...

The activation of [routerLinkActive] triggers an error related to the data.split function

In my lazy loaded module, I have implemented simple routing as shown below: <div id="nav"> <div class="nav-content"> <div class="nav-item" [routerLink]="'basic'" [routerLinkActive]="active-nav"> <span ...

Guide to adding jquery with typings installation

Need assistance: typings install jquery --global typings ERR! message Unable to find "jquery" ("npm") in the registry. Did you want to try searching another source? Also, if you want contribute these typings, please help us: https://github.com/typings/re ...

Tips for troubleshooting a React extension

Struggling to kick off the development of an internal-use add-in, I find myself stuck at the simple task of logging information with console.log. A previous inquiry on this issue can be found here. My approach involved using the yo office command within t ...

Using constant variables as arguments in functions in TypeScript

While learning about TypeScript, I encountered some confusion regarding how it handles const variables. Let's consider a scenario where I define an interface for a number: interface MyNumber { value: number; } If I then create a constant MyNumbe ...

Oops! The react-social-media-embed encountered a TypeError because it tried to extend a value that is either undefined, not a

I recently attempted to incorporate the "react-social-media-embed" package into my Next.js project using TypeScript. Here's what I did: npm i react-social-media-embed Here is a snippet from my page.tsx: import { InstagramEmbed } from 'react-soc ...

Ideal method of re-entering ngZone following an EventEmitter event

There is a specific component that wraps around a library, and to prevent the chaos of change detection caused by event listeners in this library, the library is kept outside the Angular zone: @Component({ ... }) export class TestComponent { @Output() ...

Mixing ECMAScript and CommonJS modules is not allowed

I'm currently facing an issue while trying to incorporate a library into my NEXTjs-TypeScript project. It functions properly during development, but upon running npm run build, I encountered the following error: ./src/pages/_app.tsx:17:52 Type err ...

Using Systemjs with Angular 2 results in 50 server calls for loading resources

While following the Angular2 quickstart tutorial on Angular.io, I noticed that it was making 50 separate requests, which left me wondering why. https://i.sstatic.net/bqMk8.png Is there a way to consolidate all these requests into one? My goal is to have ...