Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while compiling scss files - BundleValidator #1128

Open
buildpath-ian opened this issue Jul 26, 2023 · 0 comments
Open

error while compiling scss files - BundleValidator #1128

buildpath-ian opened this issue Jul 26, 2023 · 0 comments

Comments

@buildpath-ian
Copy link

Expected behavior

Run stencil bundle and Stencil will bundle the theme including compiling scss.

Actual behavior

Run stencil bundle and Stencil throws an error:

nvm\v18.15.0\node_modules@bigcommerce\stencil-cli\lib\ScssValidator.js:40
throw new Error(
^

Error: Undefined variable: "$theme-body-font-family".
on line 25 of settings/global/typography/typography.scss
from line 1 of stdin

$fontFamily-sans: $theme-body-font-family, Arial, Helvetica, s
--------------------------------^
: while compiling css files from "theme\assets\scss/fonts-icons".
at ScssValidator.run (C:\Users\mason\AppData\Roaming\nvm\v18.15.0\node_modules@bigcommerce\stencil-cli\lib\ScssValidator.js:40:23)
at async BundleValidator._validateCssFiles (nvm\v18.15.0\node_modules@bigcommerce\stencil-cli\lib\bundle-validator.js:409:9)

Steps to reproduce behavior

  1. Download theme via Stencil CLI. This theme is PapaThemes Beautify theme and it works fine installed on my store.
  2. Run stencil bundle
  3. Stencil CLI throws error as described above. Please note that it the $theme-body-font-family var is already defined in /global/_global.scss so this error shouldn't be occurring.

Environment

Stencil-cli version stencil --version: 7.2.0

Node version node -v: 18.15.0

NPM version npm -v: 9.5.0

OS: Windows 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant