Viewers
Viewers copied to clipboard
[HELP - BUG] Custom Data source Viewer not rendering - black blank screen
Describe the Bug
I wanted the viewer to be accessible like this /vewier/scan?id=6sdasd838878sad
So I created a new datasource in /extensions/default/src/ScanIdDataSource/index.js
, which is basically a clone of DicomJSONDataSource updated to fetch the id param and query an API, this returns dicomJSON.
When I go to this route, the console prints the statements ScanIdDataSource/index.js
, but nothing renders on the screen and no console errors.
Steps to Reproduce
This is the script /extensions/default/src/ScanIdDataSource/index.js
that is printing the console logs
Added to datasources
Browser View
Console
The current behavior
Blank Viewer
The expected behavior
It should load the scans in the Viewer
OS
Windows 11
Node version
20
Browser
Latest Chrome and edge