Currently working on a web application using Angular 16 in Webstorm. The application is still in the pre-release stage, with only minimal functionality completed so far. While editing with ng serve
running to test changes as they were made, encountered an error where the compiler halted and emitted the following message:
Error: node_modules/@angular/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts:37:247 - error TS2694: Namespace 'ts' has no exported member 'ResolutionMode'.
37 resolveTypeReferenceDirectives: ((typeReferenceDirectiveNames: string[] | readonly ts.FileReference[], containingFile: string, redirectedReference: ts.ResolvedProjectReference | undefined, options: ts.CompilerOptions, contain
ingFileMode?: ts.ResolutionMode) => (ts.ResolvedTypeReferenceDirective | undefined)[]) | undefined;
Tried the following solutions:
- Removing all changes related to the ongoing task (dismissed a modal dialog), including service calls to API
- Updated TypeScript to the latest version
- Ensured all Angular packages are of the same version
- Deleted
node_modules
and reinstalled by runningnpm install
- Cloned the repository to a new machine and attempted to build it there but encountered the same issue, ruling out any environmental factors
Link to GitHub repository showcasing the problem.
Has anyone experienced a situation where Angular fails to recognize a base TypeScript member? Despite locating ResolutionMode in typescript.d.ts, the issue persists.