Hi everyone,
I’m new to OHIF and currently trying to get it working locally with my custom backend (QIDO/WADO-style setup using API Gateway, DynamoDB, and S3). I’m running into two separate issues depending on how I run the viewer.
When I run the dev server and go to /viewer?StudyInstanceUID=...
, the viewer stays completely blank—no studies, no images, and no network requests are made to my backend.
In the browser DevTools, I get this error:
Error Message: Failed to resolve module specifier '0'
TypeError: Failed to resolve module specifier '0'
It seems to fail before any requests are even attempted.
I’ve mostly edited public/config/default.js
to set my endpoints and query params, though I see other configs like aws.js
and demo.js
in the same folder. I’m not sure if having multiple configs is causing a conflict. Also wondering if duplicating extensions (in both the top-level array and inside each mode) could be part of the issue.
Here’s what my extensions list looks like:
[
'@ohif/extension-default',
'@ohif/extension-cornerstone',
'@ohif/extension-measurement-tracking',
'@ohif/extension-cornerstone-dicom-sr',
'@ohif/extension-cornerstone-dicom-seg',
'@ohif/extension-dicom-pdf',
'@ohif/extension-dicom-video',
]
I’ve tried clearing node_modules
, reinstalling everything, and even removing/commenting out some extensions—but no luck.
Docker Issue
I also tried running the OHIF Docker image and accessed the viewer via:
http://localhost:3000/viewer/<StudyInstanceUID>
This time the viewer loads visually, but the image doesn’t, and it throws this error:
vendors~app.bundle.d73abe98496fdeef0859.js:2
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'length')
at vendors~app.bundle.d73abe98496fdeef0859.js:2:2034478
at _ (vendors~app.bundle.d73abe98496fdeef0859.js:2:2034539)
at vendors~app.bundle.d73abe98496fdeef0859.js:2:2037093
I’ve configured an AWS API Gateway backend that pulls metadata from DynamoDB and files from S3, and it’s supposed to follow the OHIF Viewer’s expectations for QIDO/WADO. Still, this error shows up and nothing loads.
I’d really appreciate any guidance on how to fix these issues—especially around configs, extensions, and how OHIF initializes requests. Not sure if I’m missing something obvious, but I’d love to get the viewer running properly so I can continue building out the rest of my app.