Meteor unknown packages
Following the docs :
# cd /path/to/OHIF/Viewers/OHIFViewer/bin
# ./localhostOrthanc.sh
Starting Meteor server...
[[[[[ /path/to/OHIF/Viewers/OHIFViewer ]]]]]
=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:
While selecting package versions:
error: unknown package in top-level dependencies: cornerstone
unknown package in top-level dependencies: dicomweb
unknown package in top-level dependencies: viewerbase
unknown package in top-level dependencies: worklist
unknown package in top-level dependencies: hangingprotocols
=> Your application has errors. Waiting for file change.
The packages are in /path/to/OHIF/Viewers/Packages but it seems that the meteor app isn't aware of this ! What is the point ? Do I have to edit meteor config ? I'm new to meteor, please help !
Marc
Hi Marc,
Try starting it from one level up (/path/to/OHIF/Viewers/OHIFViewer) with the command:
# bin/localhostOrthanc.sh
Rob
Yes ! It works now... and I have an error when requesting my Orthanc wado server. I will make some tests and maybe post a new issue for this ;) Thank you very much ! Marc
More generally, you were not seeing the packages because there was no PACKAGES_DIR specifying them. This is done in localhostOrthanc.sh, but you could also set that environment variable in your .bashrc, for example.
Your error may be the port needing to be changed to 8042. Check the previous issue: https://github.com/OHIF/Viewers/issues/2
Hi, i'm having the same issues that FWmaster had. I did radicalbob sugestion but no success.
What i'm having: "[[[[[ C:\Users\user\Desktop\Viewers-master\OHIFViewer ]]]]]
=> Started proxy. => Started MongoDB. => Errors prevented startup:
While selecting package versions: error: unknown package in top-level dependencies: cornerstone unknown package in top-level dependencies: dicomweb unknown package in top-level dependencies: viewerbase unknown package in top-level dependencies: worklist unknown package in top-level dependencies: hangingprotocols
=> Your application has errors. Waiting for file change."
Any suggestion it's accepted. i'm new using meteor.
Thanks
Thiago
Your problem is that the local packages are not being detected because PACKAGE_DIRS is not set.
You can test it with something like:
PACKAGE_DIRS=../Packages meteor --settings ../config/siimDCM4CHEE.json
Then switch siimDCM4CHEE.json to your config file depending on where your data comes from (e.g. standalone Orthanc, Orthanc in Docker, ...).
Thank you swederik. Worked fine.
Now, i have another a error: "=> Exited with code: 8 => Your application is crashing. Waiting for file change."
When i go to http://localhost:3000/ i get the error: "Your app is crashing. Here's the latest log: C:\Users\user\AppData\Local.meteor\packages\meteor-tool\1.1.10\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:245 throw(ex); ^ ReferenceError: $ is not defined at Packages/viewerbase/lib/draggable.js:2:1 at C:\Users\user\Desktop\Viewers-master\OHIFViewer.meteor\local\build\programs\server\app\Packages\viewerbase\lib\draggable.js:110:4 at C:\Users\user\Desktop\Viewers-master\OHIFViewer.meteor\local\build\programs\server\boot.js:242:10 at Array.forEach (native) at Function..each..forEach (C:\Users\user\AppData\Local.meteor\packages\meteor-tool\1.1.10\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\underscore\underscore.js:79:11) at C:\Users\user\Desktop\Viewers-master\OHIFViewer.meteor\local\build\programs\server\boot.js:137:5 Exited with code: 8 Your application is crashing. Waiting for file change."
I now have another challenge to investigate.
Thiago
That's odd. It seems that jQuery is not being initialized properly. I can't reproduce this issue on OSX, though. Maybe try:
PACKAGE_DIRS=../Packages meteor add jquery
Getting the same error on Windows. And doing
set METEOR_PACKAGE_DIRS=../Packages
meteor
seems to have found the packages