User tests: Successful: Unsuccessful:
Pull Request for no issue
We're clueless when working on a failed scss to css compilation.
This PR will adjust the error message thrown with a reference to the error and the file.
@import "variables";
variables
to vacriables
npm run build:css
npm run build:css
file:///path/to/joomla/build/build-modules-js/stylesheets/handle-scss.mjs:19
throw new Error(error.formatted);
^
Error
at handleScssFile (file:///path/to/joomla/build/build-modules-js/stylesheets/handle-scss.mjs:19:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
node:internal/process/promises:391
triggerUncaughtException(err, true /* fromPromise */);
^
Error: Error: Can't find stylesheet to import.
╷
2 │ @import "vacriables";
│ ^^^^^^^^^^^^
╵
../../../../build/media_source/com_media/scss/media-manager.scss 2:9 root stylesheet
at handleCompileResponse (/path/to/joomla/public_html/node_modules/sass-embedded/dist/lib/src/compiler/utils.js:155:15)
at AsyncCompiler.compileRequestAsync (/path/to/joomla/node_modules/sass-embedded/dist/lib/src/compiler/async.js:100:54)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async compileAsync (/path/to/joomla/node_modules/sass-embedded/dist/lib/src/compile.js:36:16)
at async handleScssFile (file:///path/to/joomla/build/build-modules-js/stylesheets/handle-scss.mjs:16:21)
With this error message I can find the failure easier then before.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Repository Administration com_admin SQL |
Labels |
Added:
PR-6.0-dev
|
Category | Repository Administration com_admin SQL | ⇒ | JavaScript Repository |
Labels |
Added:
bug
|