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

fix: Inclusion of this build in OHIF was causing an import loop #911

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

wayfarer3130
Copy link
Collaborator

Context

There was an import that ended up importing itself and trying to resolve all the imports along the way, introduced in the video code.

Changes & Results

Use direct import instead of import via the group/namespace files.

Testing

Link core/tools into OHIF. Start OHIF - if it starts, the fix worked.

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] "OS:
  • [] "Node version:
  • [] "Browser:

@wayfarer3130 wayfarer3130 requested a review from sedghi November 24, 2023 01:09
Copy link

netlify bot commented Nov 24, 2023

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit fdae005
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/655ff7ac6dbf570008dd87cd
😎 Deploy Preview https://deploy-preview-911--cornerstone-3d-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

import { Annotations } from '../../types';
import { annotationFrameRange } from '..';
import type { Annotations } from '../../types';
import annotationFrameRange from '../annotationFrameRange';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line caused the bug - we depended on that class, which depended on the import, which depended on this class - throwing an exception. Why they couldn't detect that I don't know.

@sedghi sedghi merged commit 997f5da into main Nov 24, 2023
@luxl
Copy link

luxl commented Nov 29, 2023

Glad it's fixed, it took me hours trying to find the problem, but failed. Did you use any tools to find the import loop?

@sedghi
Copy link
Member

sedghi commented Dec 13, 2023

@luxl Not really

@wayfarer3130 wayfarer3130 deleted the fix/build-issues-20231123 branch January 22, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants