-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
OHIF Viewer within React #1448
Comments
@dannyrb |
You'll notice all of our own npm scripts set a flag to allow for more than the default amount of memory: Until we reign in our app's size, you'll likely need to do something similar when consuming We have some guidance around "embedding" the viewer, but not with your current approach: https://docs.ohif.org/deployment/#embedded-viewer We could have better tests/support for what you're attempting, but I am curious how much demand their is for embedding/usage with this approach, and the reasons users are opting for it. If you're using all of |
I am also trying to integrate the viewer within my React App. I want to interface with other components outside the viewer. The direct attempt seemed most plausible to me. I am using an ejected
A size of 4096 does not cut it. And even with 8192 I get:
I followed the advice on the "Embedding the viewer" documentation page:
|
There is a related issue for this floating around. We do need to address this. I believe part of the issue is building everything from source. The other part is likely the large codecs bundle from cornerstone-wado-image-loader. Unfortunately, we're a bit short on bandwidth and resources, and this is not prioritized for the core team. I am more than happy to review a PR that addresses the underlying issue, and welcome any feedback/guidance from the community that may help us solve this. If this is a blocker for you, you can investigate and author a pull request, or reach out to an OHIF consultant. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The problem is active, did the same as the creator of the issue, used --max_old_space_size = 8192. |
Found a solution. |
Hi Guys, back then, it worked for me with: --max_old_space_size = 8192 But I am not longer using the library. Regards, Eduardo |
In our case we want to re-use the viewer, study list and tools from @ohif/ui. We want to build an app around components in @ohif/ui. The OHIF docs state that @ohif/ui “is a React Component library that contains the reusable components that power the OHIF Viewer.”...Aims to “aid rapid application development for context specific viewers“." It seems like OHIF isn't composable because packaging it in an existing React app causes memory errors. If you are using OHIF to build "context specific viewers", how do you go about using it as a library rather than embedding the entire @ohif/viewer app? I've managed to build the project by disabling sourcemaps (GENERATE_SOURCEMAP=true), but that makes the development / debugging process much harder. |
Hello, We have already gone through documentation. If anyone has the solution to this it will be really helpful. |
I am trying to run the OHIF Viewer inside a simple react application but I am getting the error posted below.
Is OHIF Viewer within React even supported?
Any suggestion to run OHIF Viewer inside a React App?
I went through the following steps:
Sample React App from: https://create-react-app.dev/docs/getting-started/
GitHub repo: https://github.com/EduardoSantanaSeverino/OhifViewerReact
1:
The text was updated successfully, but these errors were encountered: