threetwo
threetwo copied to clipboard
Docker Compose Sass Error
Upon following the docker-compose unraid tutorial I'm getting the following error on the UI:
[vite:css] Preprocessor dependency "sass" not found. Did you install it? Try npm install -D sass.
Got the same issues :
✓ built in 1.80s [vite:css] Preprocessor dependency "sass" not found. Did you install it? Try
npm install -D sass. file: /threetwo/src/client/assets/scss/App.scss error during build: Error: Preprocessor dependency "sass" not found. Did you install it? Try
npm install -D sass. at loadPreprocessor (file:///threetwo/node_modules/vite/dist/node/chunks/dep-df561101.js:39269:19) at scss (file:///threetwo/node_modules/vite/dist/node/chunks/dep-df561101.js:39310:20) at compileCSSPreprocessors (file:///threetwo/node_modules/vite/dist/node/chunks/dep-df561101.js:38735:36) at compileCSS (file:///threetwo/node_modules/vite/dist/node/chunks/dep-df561101.js:38785:42) at async Object.transform (file:///threetwo/node_modules/vite/dist/node/chunks/dep-df561101.js:38266:56) at async transform (file:///threetwo/node_modules/rollup/dist/es/shared/node-entry.js:24367:16) at async ModuleLoader.addModuleSource (file:///threetwo/node_modules/rollup/dist/es/shared/node-entry.js:24567:30)
Any update on this?
I am getting the same issue.
Perhaps a quick fix is to update the Dockerfile to include sass during install?
I'll get to updating the individual images this weekend. I'm busy currently with automating download functionality, once that is complete, I can fix this.
Other issue is with the core-services container where it complains about incorrect version of node.js.
Below is part of the error log:
[2024-05-06T15:49:26.121Z] ERROR threetwo-core-service/BROKER: Failed to load service '/core-services/dist/services/imagetransformation.service.js' Error: Could not load the "sharp" module using the linuxmusl-x64 runtime
Possible solutions:
- Please upgrade Node.js:
Found 14.21.3
Requires ^18.17.0 || ^20.3.0 || >=21.0.0
The latest update to https://github.com/rishighan/threetwo-docker-compose should fix this. Closing this issue, feel free to re-open if it persists.