Open highoncarbs opened 4 months ago
I'm really surprised, since we build each beta release and push it to dockerhub
@sedghi I know, this is super weird, even tried cloning multiple times and checking. The local builds just fine. Any idea ? Also it would be helpful if you could help in my other issue as well.
@sedghi this is happening with the master branch, and 3.9 I guess where these two files were committed. on 3.5 it works fine
I had the same issue when trying to build it with Docker on a Windows 11 machine but it works just fine when building with docker in linux. I solved it by changing the import statement for ProgressDropdownWithService from this:
import ProgressDropdownWithService from './components/ProgressDropdownWithService';
to this:
import ProgressDropdownWithService from './Components/ProgressDropdownWithService';
in the files /extensions/default/src/getToolbarModule.tsx and /extensions/default/src/getCustomizationModule.tsx
Is it perhaps case sensitive when running in Windows?
I figured these must have been due to windows @eriklofblad thanks! Also do you happen to share some insights on this as well Issue 4161 , would appreciate it.
I'm revisiting Docker builds, Nginx, and Keycloak stuff this week.
@sedghi Hi could this be due to the fact that there are two folders in the /src directory: Components and components? I took a screenshot of your repository for clarity.
@ctpaep Good catch, i'm fixing it in a minute
This will fix it , sorry https://github.com/OHIF/Viewers/pull/4192
I had the same issue when trying to build it with Docker on a Windows 11 machine but it works just fine when building with docker in linux. I solved it by changing the import statement for ProgressDropdownWithService from this:
import ProgressDropdownWithService from './components/ProgressDropdownWithService';
to this:import ProgressDropdownWithService from './Components/ProgressDropdownWithService';
in the files /extensions/default/src/getToolbarModule.tsx and /extensions/default/src/getCustomizationModule.tsxIs it perhaps case sensitive when running in Windows?
I see the same issue with tag v3.8.0 and Mac. I also had to update this file Viewers/extensions/default/src/getCustomizationModule.tsx to fix the docker build issue.
95.72 @ohif/app: ERROR in ../../../extensions/default/src/getCustomizationModule.tsx 3:0-83
95.72 @ohif/app: Module not found: Error: Can't resolve './components/ProgressDropdownWithService' in '/usr/src/app/extensions/default/src'
95.72 @ohif/app: Did you miss the leading dot in 'resolve.extensions'? Did you mean '[".js",".jsx",".json",".ts",".tsx",".*"]' instead of '[".js",".jsx",".json",".ts",".tsx","*"]'?
95.72 @ohif/app: resolve './components/ProgressDropdownWithService' in '/usr/src/app/extensions/default/src'
95.72 @ohif/app: using description file: /usr/src/app/extensions/default/package.json (relative path: ./src)
95.72 @ohif/app: Field 'browser' doesn't contain a valid alias configuration
95.72 @ohif/app: using description file: /usr/src/app/extensions/default/package.json (relative path: ./src/components/ProgressDropdownWithService)
95.72 @ohif/app: no extension
95.72 @ohif/app: Field 'browser' doesn't contain a valid alias configuration
95.72 @ohif/app: /usr/src/app/extensions/default/src/components/ProgressDropdownWithService doesn't exist
95.72 @ohif/app: .js
95.72 @ohif/app: Field 'browser' doesn't contain a valid alias configuration
95.72 @ohif/app: /usr/src/app/extensions/default/src/components/ProgressDropdownWithService.js doesn't exist
95.72 @ohif/app: .jsx
95.72 @ohif/app: Field 'browser' doesn't contain a valid alias configuration
95.72 @ohif/app: /usr/src/app/extensions/default/src/components/ProgressDropdownWithService.jsx doesn't exist
95.72 @ohif/app: .json
95.72 @ohif/app: Field 'browser' doesn't contain a valid alias configuration
95.72 @ohif/app: /usr/src/app/extensions/default/src/components/ProgressDropdownWithService.json doesn't exist
95.72 @ohif/app: .ts
95.72 @ohif/app: Field 'browser' doesn't contain a valid alias configuration
95.72 @ohif/app: /usr/src/app/extensions/default/src/components/ProgressDropdownWithService.ts doesn't exist
95.72 @ohif/app: .tsx
95.72 @ohif/app: Field 'browser' doesn't contain a valid alias configuration
95.72 @ohif/app: /usr/src/app/extensions/default/src/components/ProgressDropdownWithService.tsx doesn't exist
95.72 @ohif/app: *
95.72 @ohif/app: Field 'browser' doesn't contain a valid alias configuration
95.72 @ohif/app: /usr/src/app/extensions/default/src/components/ProgressDropdownWithService* doesn't exist
95.72 @ohif/app: as directory
95.72 @ohif/app: /usr/src/app/extensions/default/src/components/ProgressDropdownWithService doesn't exist
95.72 @ohif/app: @ ../../../extensions/default/src/index.ts 9:0-62 42:2-24
95.72 @ohif/app: @ ./pluginImports.js
95.72 @ohif/app: @ ./index.js 19:0-89 33:4-21 34:4-16
95.72 @ohif/app: webpack 5.91.0 compiled with 1 error and 1 warning in 84682 ms (a7049b4172118429b0e6)
@yairroze check master it is fiex now
Describe the Bug
I am building the docker image as described in the documentation. I did a fresh git clone and ran docker build. It fails to build the image, but a regular yarn run build is building the Viewer
Here's the error
Steps to Reproduce
docker build . -t ohif
The current behavior
Failing at yarn run build
The expected behavior
Should build an image
OS
Windows 11
Node version
20
Browser
Latest Chrome and edge