Hi
I am using OHIF viewer version 3.10.0-beta.118
I am done with build dist using yarn run build and dist folder created successfully. After that tried below steps
yarn global add http-server
cd .\platform\app
npx serve ./dist -c …/public/serve.json
After done above steps i got below information
Serving! │
│ │
│ - Local: localhost:3000 │
│ - Network: 192.168.0.105:3000 │
│ │
│ Copied local address to clipboard! │
│ │
└───────────────────────────────────────────┘
HTTP 3/8/2025 4:23:42 PM ::1 GET /
HTTP 3/8/2025 4:23:42 PM ::1 Returned 200 in 116 ms
HTTP 3/8/2025 4:23:42 PM ::1 GET /app.bundle.css
HTTP 3/8/2025 4:23:42 PM ::1 GET /app-config.js
HTTP 3/8/2025 4:23:42 PM ::1 GET /init-service-worker.js
After that i tried below url in the chrome
localhost:3000/viewer?StudyInstanceUIDs=1.2.276.0.7230010.3.1.2.2155604110.4180.1021041295.21
got below error
HTTP 3/9/2025 7:58:29 PM ::1 GET /viewer?StudyInstanceUIDs=1.2.276.0.7230010.3.1.2.2155604110.4180.1021041295.21
INFO Gracefully shutting down. Please wait…
D:\Viewers-master\Viewers-master\node_modules\serve-handler\src\index.js:81
const toPath = pathToRegExp.compile(normalizedDest);
^
TypeError: pathToRegExp.compile is not a function
at toTarget (D:\Viewers-master\Viewers-master\node_modules\serve-handler\src\index.js:81:30)
at applyRewrites (D:\Viewers-master\Viewers-master\node_modules\serve-handler\src\index.js:105:18)
at module.exports (D:\Viewers-master\Viewers-master\node_modules\serve-handler\src\index.js:618:24)
at run (file:///D:\Viewers-master/Viewers-master/node_modules/serve/build/main.js:184:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v20.11.0
Kindly help to solve the issue. I am using windows 10.
Thanks