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

ReferenceError: window is not defined #150

Open
LeoReubelt opened this issue Sep 1, 2022 · 1 comment
Open

ReferenceError: window is not defined #150

LeoReubelt opened this issue Sep 1, 2022 · 1 comment

Comments

@LeoReubelt
Copy link

LeoReubelt commented Sep 1, 2022

When I use <CornerstoneViewport />, I get ReferenceError: window is not defined.

@LeoReubelt
Copy link
Author

And if i dynamically import, i get the following error...

Unhandled Runtime Error
TypeError: Cannot set properties of undefined (setting 'cornerstone')

377 | console.log(cornerstone tools ---- , cornerstoneTools.external);
378 | // Cornerstone Tools

379 | cornerstoneTools.external.cornerstone = cornerstone;
| ^
380 | cornerstoneTools.external.Hammer = Hammer;
381 | cornerstoneTools.external.cornerstoneMath = cornerstoneMath;
382 | cornerstoneTools.init();

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

1 participant