windowWidth.toFixed is not a function in viewerMain [failed to load image]
i have some issues of app in my local host
TypeError: windowWidth.toFixed is not a function
and am not changed anything of code just upgrade node.js

I have the same question
I have the same problem. Did y'all get this problem by running yarn run dev? I worked around it by giving APP_CONFIG some value other than default.j, but I would also like some explanation on what is happening here.
According to issue #2138 there is a work around.
I did what @gccgomes and @bianyueyan suggested. I am pretty sure it is not a fix but it is a workaround for CT images
I have the same problem. Did y'all get this problem by running
yarn run dev? I worked around it by giving APP_CONFIG some value other than default.j, but I would also like some explanation on what is happening here.
i think the problem come from upgrading some functions on cornerstone library , problem show in CT , CT/PT images
I have the same problem. Did y'all get this problem by running
yarn run dev? I worked around it by giving APP_CONFIG some value other than default.j, but I would also like some explanation on what is happening here.i think the problem come from upgrading some functions on cornerstone library , problem show in CT , CT/PT images
How about other image files like DICOM? Did you get them to work?
I have the same problem. Did y'all get this problem by running
yarn run dev? I worked around it by giving APP_CONFIG some value other than default.j, but I would also like some explanation on what is happening here.i think the problem come from upgrading some functions on cornerstone library , problem show in CT , CT/PT images
How about other image files like DICOM? Did you get them to work?
just SM images work after refactor code in node-modules according to issue
@swederik modifying react-cornerstone-viewport to consider both number / strings resolves the issue: https://github.com/cornerstonejs/react-cornerstone-viewport/pull/115
@swederik modifying react-cornerstone-viewport to consider both number / strings resolves the issue: cornerstonejs/react-cornerstone-viewport#115
i wanna to show , this bug come after last commit team have made in in last version of ohif , i solve it when i reuse older version of ohif and modifying react-cornerstone-viewport to consider both number / strings it solved but in last version this solution not working
@swederik modifying react-cornerstone-viewport to consider both number / strings resolves the issue: cornerstonejs/react-cornerstone-viewport#115
i wanna to show , this bug come after last commit team have made in in last version of ohif , i solve it when i reuse older version of ohif and modifying react-cornerstone-viewport to consider both number / strings it solved but in last version this solution not working
@brikjr Can you show which commit introduced the bug?
@swederik modifying react-cornerstone-viewport to consider both number / strings resolves the issue: cornerstonejs/react-cornerstone-viewport#115
i wanna to show , this bug come after last commit team have made in in last version of ohif , i solve it when i reuse older version of ohif and modifying react-cornerstone-viewport to consider both number / strings it solved but in last version this solution not working
@brikjr Can you show which commit introduced the bug?
i don't know exactly which commit , but it's not working in version of 9 mar
I have the same question
I’ll open a PR today to bump react-cornerstone-viewport version in OHIF, this should solve the problem for now. Later I’ll open another that fix the issue in the OHIF metadata level.
I downloaded the latest version of OHIF Viewer, and I still have the same problem in 2D MPR
If you can reply to me, I will thank you very much.
I downloaded the latest version of OHIF Viewer, and I still have the same problem in 2D MPR If you can reply to me, I will thank you very much.
![]()
Looks like this is not a toFixed issue. It could be related but it's a different error in a different OHIF extension that needs investigation, can you create the issue for it with this screenshot?
OK , thank you very much.
Fixed in the latest version!