cornerstone3D
cornerstone3D copied to clipboard
[Bug] @cornerstonejs/tools/dist/types/utilities/getViewportForAnnotation.d.ts:2:141 - error TS2307: Cannot find module 'packages/core/dist/types/types' or its corresponding type declarations.
Describe the Bug
File getViewportsForAnnotation.d: import type { Annotation } from '../types'; export default function getViewportsForAnnotation(annotation: Annotation): (import("packages/core/dist/types/types").IVolumeViewport | import("packages/core/dist/types/types").IStackViewport)[];
Has "packages/core/dist/types/types".
File getViewportForAnnotation.d.ts : import type { Annotation } from '../types'; export default function getViewportForAnnotation(annotation: Annotation): import("packages/core/dist/types/types").IVolumeViewport | import("packages/core/dist/types/types").IStackViewport;
The directory "packages" does not exist.
Steps to Reproduce
install @cornerstonejs/tools^1.70.5
The current behavior
@cornerstonejs/tools/dist/types/utilities/getViewportForAnnotation.d.ts:2:141 - error TS2307: Cannot find module 'packages/core/dist/types/types' or its corresponding type declarations.
The expected behavior
No build error
OS
Windows 11
Node version
v18.19.0
Browser
N/A