Problem when using cornerstoneTools and cornerstone as a module in a node.js project
See original GitHub issueHey, I am encountering some problems here when loading cornerstone and cornerstoneTools as a module with require
or import
. Then window.cornerstone
is not available to cornerstoneTools.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Introduction · cornerstone-tools - Cornerstone.js
Cornerstone Tools is a JavaScript library that assists in annotating, segmenting, and measuring medical images. This library also provides a framework for ...
Read more >npm - Snyk
To help you get started, we've selected a few cornerstone-tools examples, based on popular ways it is used in public projects. Secure your...
Read more >Cornerstone Tools not loading built in tools - Stack Overflow
Im answering my own question here, I switched to imports and redid some of the code. the following seems to work fine so...
Read more >cornerstone-tools - UNPKG
92, This module is distributed via [npm][npm-url] which is bundled with [node][node] and. 93, should be installed as one of your project's `dependencies`:....
Read more >Questions about Cornerstone, Tools, Layouts and More
I have previously worked on a project developing a non-Javascript based DICOM ... At present, what would be the latest set of tools...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@vsaase Hey Victor, Would you mind to provide me any log with errors or any other information that could help me to understand your issue?
I have the @vnext version set up with OHIF Standalone viewer and everything is working fine there as well.
Ideally, I added that line to prevent the code from breaking in case cornerstone is not present into external (and window)
@vsaase to @JamesAPetts’s point, just make sure you’re depending on an exact version, and not loosely in your NPM dependencies. We’ll cut a more stable release before too long, but until then, every new release has a chance to introduce a breaking change.
That being said, feedback on what is and is not working for the latest build is always appreciated ^_^