openedx / openedx/paragon

[CLI] `build-scss` requires `dist` directory exists, still runs after showing error

Open
#3,950 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
140
Forks
100
Avg merge
1h 3m
Merged PRs (30d)
30

Description

If you don't have a dist directory and run build-scss, you'll see an error

✖ Failed to build stylesheets for Core: ENOENT: no such file or directory, open './dist/core.css'

but it will continue to run anyways (and can't be interrupted )

brand-openedx has a line in the Makefile working around this

.PHONY: build
build:
	rm -rf dist && mkdir dist
	npm run build-tokens
	npm run build-scss

We should either stop trying to build if we don't have an output directory, or create one if it is missing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the implementation behind the build-scss command and run it without a dist directory to reproduce the ENOENT error and continued execution. Decide whether the command should create the missing output directory or stop cleanly, then verify that the chosen behavior completes without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, scss
Domain
build-system, cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.