Issue: Problems while building Tutor image with custom changes in Open edX platform

Hello, I am encountering an issue while trying to build a custom Tutor image for Open edX. I’m running the command:
tutor images build openedx-dev

However, during the build process, I get an error at the stage of npm run compile-sass -- --skip-themes:
ModuleNotFoundError: No module named ‘_sass’

I have already tried the following solutions:

  1. Running npm install sass@v1.54.8
  2. Running pip install libsass

These did not resolve the problem. My goal is to mount my local edx-platform directory to Tutor so I can start customizing Open edX, but I keep running into issues.

How can I properly mount the edx-platform to Tutor and build the image for customization without running into these Sass-related errors?

This started happening when I first tried mounting the edx-platform with Tutor before making any changes. Once I did this, the errors started appearing right away.

My goal is to mount my local edx-platform directory to Tutor so I can start customizing Open edX, but I keep running into these Sass-related errors.

I’ve referred to the documentation, but I’m stuck at this point. If anyone has experience in working with Open edX purely as a developer and could suggest the right way to mount the edx-platform and customize the image without these errors, I’d really appreciate it!

Any ideas or experience with a similar setup would be helpful!

I faced the same issue today, and I executed npm install command in edx-platform directory.
and tried again building openedx-dev image using command tutor images build openedx-dev and this time it works.

I believe it has some issue while syncing docker volume, I am not exactly sure about the issue. I will still do my investigation around the issue and post here If I find any more helpful information.