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

Issue with Demo Project - Empty Viewport #1

Open
francescoderose opened this issue Nov 6, 2024 · 8 comments
Open

Issue with Demo Project - Empty Viewport #1

francescoderose opened this issue Nov 6, 2024 · 8 comments

Comments

@francescoderose
Copy link

HI,

I’ve tried launching the demo project, but unfortunately, the viewport remains empty every time. I’ve followed the instructions, but the issue persists. Could anyone provide guidance on how to resolve this?

Thank you for your availability and the great work on this project!

image

@EugeneQilo
Copy link

@sedghi any chance you can get this repo to render? I'm getting same results as @francescoderose

@sedghi
Copy link
Member

sedghi commented Nov 11, 2024

Angular uses vite as far as i know, you can take a look at the vite recipe here which seems to work both in prod and dev

https://github.com/cornerstonejs/vue-cornerstone3d

https://github.com/cornerstonejs/vite-react-cornerstone3d

@francescoderose
Copy link
Author

@sedghi Vite shouldn’t be natively compatible with Angular. Is it essential for the functionality, or could we consider another approach? Thank you

@sedghi
Copy link
Member

sedghi commented Nov 12, 2024

I'll check this in about two weeks. I'm currently busy with other tasks, but since Angular uses Vite, it should work the same way.

@EugeneQilo
Copy link

@sedghi Vite or Webpack, it is giving the same issue... The issue is when decodeImageFrameWorker is run as a Worker... The path of import.meta.url is populating as a local file://xxxx path instead of a server path. Not sure if this is something you have faced before and know the answer to.

const instance = new Worker(
new URL('./decodeImageFrameWorker.js', import.meta.url),
{ type: 'module' }
);

@Sinarab
Copy link

Sinarab commented Nov 12, 2024

I'm having tha same issue here. Trying to find a workaround however still stuck, like @sedghi said this seams to be a problem the way vite bundles on a angular app.

Have anyone another solution for this?

@sedghi
Copy link
Member

sedghi commented Nov 12, 2024

try excluding the dicomimageLoader pacakge from vite optimization, as here https://github.com/cornerstonejs/vite-react-cornerstone3d/blob/main/vite.config.ts

@Sulaiman2018
Copy link

Hi, has anyone found a solution to this issue? I'm experiencing the same behavior where the viewport remains empty when trying to launch the demo project. Any ideas or solutions would be really appreciated!

Thanks in advance.

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

No branches or pull requests

5 participants