Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

[Bug] no exported member named 'hotkeys' & cannot find module '@ohif/mode-longitudinal'

Open salkz opened this issue 5 months ago • 2 comments

Describe the Bug

This is a follow-up for https://github.com/OHIF/Viewers/issues/3979

Steps to Reproduce

  1. Checkout and install ohif
  2. Create and link a mode anywhere except Viewers/modes
  3. 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)

image

Error 2

import { initToolGroups, toolbarButtons } from '@ohif/mode-longitudinal';

produces an error: TS2307: Cannot find module @ohif/mode-longitudinal or its corresponding type declarations. image

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. image

The expected behavior

Imports work without errors.

OS

macOS 14.5 (23F79)

Node version

v18.19.0

Browser

No browser needed

salkz avatar Sep 18 '24 11:09 salkz