Try ERPNext Buy Support Partners Foundation

Website Theme node-sass error, Using All Docker Hub Docker Images Version-12

Hello all… I am new here. I started at new project and using Frappe ERPNext. I have it up and running on AWS ECS Fargate using AWS Service Discovery. I used the Docker Hub Images “Version-12” for all the services. Everything seem seems to running fine. When trying to add a custom theme under Website and I add Custom CSS into to the Theme field. I get an error Module Not Found for node-sass. I found this issue: https://github.com/frappe/frappe_docker/issues/229 it says it was merged but yet I am still getting this error. What am I doing wrong??
Also what node is doing the action? nginx or worker?

Thank you for your time.

erpnext 12.17.0
frappe 12.14.0

internal/modules/cjs/loader.js:818
throw err;
^

Error: Cannot find module ‘node-sass’
Require stack:

  • /home/frappe/frappe-bench/apps/frappe/generate_bootstrap_theme.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (/home/frappe/frappe-bench/apps/frappe/generate_bootstrap_theme.js:1:14)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
    code: ‘MODULE_NOT_FOUND’,
    requireStack: [
    ‘/home/frappe/frappe-bench/apps/frappe/generate_bootstrap_theme.js’
    ]
    }

Works in PWD and on my k8s cluster.

  • erpnext-nginx and erpnext-python containers mount 2 volumes
  • nginx container copies node_modules from self to assets-vol
  • python container copies node_modules from assets-vol to sites/assets

This makes node-sass available for python container.

Make sure volumes are mounted.

After looking a the commit to fix the node-sass, I went in and looked at the Docker images. (https://github.com/frappe/frappe_docker/pull/341/commits/f77a9bbe66c5ec3d0de28e8675bb6278966dd9db) I don’t see where yarn add node-sass is in the install_app.sh file like it says in . I added it and did a build on the image. I then deployed the updated image and cycled all the tasks and I am still seeing this issue. Should I be on the edge ver for production?

Thank you.

That is not required anymore, node-sass is now added as dependency instead of devDependencies.

Also this is available in v13 beta and edge. Not on v12

@revant_one thank you for the time. This helped me out a lot I had to move up to edge. I am happy I found this before we started to build the apps. Thank you agin…