-
Notifications
You must be signed in to change notification settings - Fork 44
Description
The dicom-microscopy-viewer library is a valuable tool for displaying DICOM (Digital Imaging and Communications in Medicine) microscopy images within web applications. However, the recent release of version seems to have introduced module import issues for users, leading to two distinct error scenarios:
1. Using <script type="module">:
When developers include the library using the <script type="module"> tag like this:
<script type="module" src="https://unpkg.com/dicom-microscopy-viewer@0.45.1"></script>The error message Uncaught TypeError: Failed to resolve module specifier "mathjs". Relative references must start with either "/", "./", or "../". appears in the console. This error suggests an issue with module resolution and specifier handling.
2. Using <script> without type="module":
Alternatively, when developers attempt to include the library without the type="module" attribute:
<script src="https://unpkg.com/dicom-microscopy-viewer@0.45.1"></script>They encounter the error message Uncaught SyntaxError: Cannot use import statement outside a module. This error implies that the library's code is written as ES6 modules, and without the type="module" attribute, it cannot properly handle import statements.
I can't use it maybe there's a more specific example in the import section (a full example) and my dicomWeb works fine.