Viewers
Viewers copied to clipboard
[Bug] no exported member named 'hotkeys' & cannot find module '@ohif/mode-longitudinal'
Describe the Bug
This is a follow-up for https://github.com/OHIF/Viewers/issues/3979
Steps to Reproduce
- Checkout and install ohif
- Create and link a mode anywhere except
Viewers/modes
- Open up created mode
src/index.tsx
in Visual Studio Code or WebStorm
The current behavior
Visual Studio Code
Error 1
import { hotkeys } from '@ohif/core';
produces an error: '"@ohif/core"' has no exported member named 'hotkeys'. Did you mean 'Hotkey'?ts(2724)
Error 2
import { initToolGroups, toolbarButtons } from '@ohif/mode-longitudinal';
produces an error: TS2307: Cannot find module @ohif/mode-longitudinal or its corresponding type declarations.
WebStorm
Error 1
import { initToolGroups, toolbarButtons } from '@ohif/mode-longitudinal';
produces an error: TS2307: Cannot find module @ohif/mode-longitudinal or its corresponding type declarations.
The expected behavior
Imports work without errors.
OS
macOS 14.5 (23F79)
Node version
v18.19.0
Browser
No browser needed