Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
salkz opened this issue Sep 18, 2024 · 1 comment
Labels
Awaiting Reproduction Can we reproduce the reported bug?

Comments

@salkz
Copy link

salkz commented Sep 18, 2024

Describe the Bug

This is a follow-up for #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 salkz added the Awaiting Reproduction Can we reproduce the reported bug? label Sep 18, 2024
@salkz
Copy link
Author

salkz commented Sep 18, 2024

Also, I just reproduced the original referenced issue as well with this directory structure:

Viewers
extensions
modes

Where Viewers is the checked out repository and modes, extensions are the directories for created modes and extensions respectively.

If the directory structure is:

Viewers
Viewers/custom-extensions
Viewers/custom-modes

then it somewhat resolves importing from @ohif/core without TS2307 error but then we are left with the errors described in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Reproduction Can we reproduce the reported bug?
Projects
None yet
Development

No branches or pull requests

1 participant