-
Notifications
You must be signed in to change notification settings - Fork 1
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
Comments
@sedghi any chance you can get this repo to render? I'm getting same results as @francescoderose |
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 |
@sedghi Vite shouldn’t be natively compatible with Angular. Is it essential for the functionality, or could we consider another approach? Thank you |
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. |
@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( |
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? |
try excluding the dicomimageLoader pacakge from vite optimization, as here https://github.com/cornerstonejs/vite-react-cornerstone3d/blob/main/vite.config.ts |
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. |
Please try the following things and report back whether any of this seems to help:
|
I have tried the vite config for Angular, but it doesnt make any result |
I think the issue is angular does not let you modify the vite config ... You can give another thumbs down on that comment too ... So maybe the webpack builder is the way to go |
I guess we need to use this one, https://github.com/just-jeb/angular-builders/tree/master/packages/custom-esbuild but right now we don't have priority for it |
As i said, we need to open an issue on angular-cli and ask them how to do this, since all the other vite based recipes can already dev/build |
Try this
|
see this angular/angular-cli#27552 (comment) |
I reported the issue to angular team |
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!
The text was updated successfully, but these errors were encountered: