View in #ohif on Slack
@Johnmark_Enriquez: Hi Everyone,
I’ve encountered some errors while testing my build output locally using the command: npx serve ./dist -c ../public/serve.json
git checkout release/3.8
sudo rm yarn.lock
yarn config set workspaces-experimental true
yarn install
yarn run build
cd platform/app
npx serve ./dist -c ../public/serve.json
Node Version : 18.16.1
Npm: 9.5.1
Yarn: 1.22.22
Note: I deleted the yarn.lock
because I wanted to get the updated Cornerstone changes into my OHIF 3.8.3.
Please see the images below for more details.
@Alireza_Sedghi: This sounds like your vtk.js is not updated
what are you building again?
@Johnmark_Enriquez: production build
I use the release/3.8 branch
Then i delete the yarn.lock
then yarn run build
cd platform/app
npx serve ./dist -c ../public/serve.json
@Jaeyoung_Cho_(Joey_Cho): @Johnmark_Enriquez I got the exactly same issue several weeks ago. https://github.com/OHIF/Viewers/issues/4245
I guessed that there are some issues with webpack. Check the version, and try to use “webpack”: “5.89.0”. And please let me know whether it fixes your issue, since I’m curious what caused this error.
#4245 [Bug] Build bug with production for deployment (Either maybe babel or Webpack issue variable obfuscation)
@Johnmark_Enriquez: My suspicion is with the yarn.lock file. It needs to match the exact packages used in that OHIF version. It seems that the yarn.lock file can’t be deleted and then yarn install again because some dependencies will break and won’t match the OHIF version.
I am also experimenting because I encountered an error. Here’s the link: https://cornerstonejs.slack.com/archives/CEM89S010/p1721717892366759. It’s also possible that some other issues might get fixed. I don’t really know the proper way to build for production.
[July 22nd, 2024 11:58 PM] enriquezjohnmark15: Hi everyone,
I’ve encountered an issue and I’m not sure what is this. Does anyone have any ideas? Any input will be appreciated.
[ERROR] Size of tile data exceeds system limits
[ERROR] Failed to decode.
[ERROR] Failed to decode tile 1/1
[ERROR] opj_decompress: failed to decode tile!
Can I ask a question? When should I update my node_modules
?
@Jaeyoung_Cho_(Joey_Cho): If the package name is prefixed with ^, yarn will download and install the latest one. Plus, if other parts (one of extensions) has ^, then it can be affected as well.
Generating yarn.lock, I think there is nothing you can do with that. But if you focus on package.json across the repository, yes.
@Johnmark_Enriquez: https://cornerstonejs.slack.com/archives/CEM89S010/p1721717892366759,I still don’t know what package version fixes this issue. I need to experiment further.
[July 22nd, 2024 11:58 PM] enriquezjohnmark15: Hi everyone,
I’ve encountered an issue and I’m not sure what is this. Does anyone have any ideas? Any input will be appreciated.
[ERROR] Size of tile data exceeds system limits
[ERROR] Failed to decode.
[ERROR] Failed to decode tile 1/1
[ERROR] opj_decompress: failed to decode tile!
Can I ask a question? When should I update my node_modules
?