Open TardigradeX opened 1 year ago
We had some issues publishing the esm version of dicom image loader because of the webworkers and wasm modules that we use. I will re-visit this
Was there ever a solution for this or a work around?
The beta branch has types I'm working to puah it to main and 2.xx version in the coming days
if you use 2.0.0-beta.17 they have types
Describe the Bug
Trying to use:
import cornerstoneDICOMImageLoader from '@cornerstonejs/dicom-image-loader'
does lead to:
Could not find a declaration file for module '@cornerstonejs/dicom-image-loader'
If you look at
node_modules/@cornerstonejs/dicom-image-loader
there are no d.ts files to be found. You can also see the following in the package.json file.It seems that the type definition files are never added to the distributed build file.
Steps to Reproduce
yarn add @cornerstonejs/dicom-image-loader
import cornerstoneDICOMImageLoader from '@cornerstonejs/dicom-image-loader'
The current behavior
Could not find a declaration file for module '@cornerstonejs/dicom-image-loader'
The expected behavior
It should find declaration files.
OS
Windows 10
Node version
16.20.0
Browser
Chrome 116.0.5845.97