threetwo icon indicating copy to clipboard operation
threetwo copied to clipboard

Docker Compose Sass Error

Open HaruVON opened this issue 1 year ago • 4 comments

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.

HaruVON avatar Jan 04 '24 19:01 HaruVON

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)

EkielZan avatar Apr 16 '24 09:04 EkielZan

Any update on this?

I am getting the same issue.

Perhaps a quick fix is to update the Dockerfile to include sass during install?

francop311 avatar May 01 '24 15:05 francop311

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.

rishighan avatar May 01 '24 18:05 rishighan

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

francop311 avatar May 06 '24 15:05 francop311

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.

rishighan avatar May 28 '24 13:05 rishighan