bigcommerce / stencil-cli

BigCommerce Stencil emulator for local theme development
https://developer.bigcommerce.com/stencil-docs
BSD 4-Clause "Original" or "Old" License
101 stars 141 forks source link

Stencil not bundling - throwing errors that I'm not familiar with. Localhost site not at all styled correctly but not understanding why #1030

Open stanfabrics opened 2 years ago

stanfabrics commented 2 years ago

Expected behavior Theme files should bundle correctly so I can upload a zip file to Bigcommerce.

Actual behavior Theme not bundling - throwing errors I have never encountered. I am not entirely knowledged in Stencil CLI but I have never had any issues prior. Also after running 'stencil start', lots more text than usual regarding errors and warnings. All seem to regard my style sheet maybe? The content on my localhost is correct but not styled the way it is supposed to be.

Attaching images for what I am receiving. After running 'stencil start': right after entering, received 'No api host found in config file, falling back to https://api.bigcommerce.com. You may need to run 'stencil init' again.' though I did not run 'stencil init' again.

after running 'stencil start'

After running 'stencil bundle':

after running 'stencil bundle'

Steps to reproduce behavior I followed the rules for installing the Stencil CLI from Bigcommerce's page. Stencil init worked fine. One I enter 'stencil start', my localhost environment runs. I receive errors and warnings there as it continues to run. Localhost site has the correct content but not the styled correctly. I try to run 'stencil bundle' - originally received ': command not found: stencil' even though I installed Stencil MULTIPLE times. Finally got past that but now receiving lots of errors and warnings after entering 'stencil bundle'. I was originally having issues with pushing files to bitbucket and resolved that. Afterwards, I started having issues getting stencil to work correctly although it was working fine earlier in the day.

Environment

Stencil-cli version stencil --version: 5.3.3

Node version node -v: 14.20.0

NPM version npm -v: 6.14.17

OS: Mac OS Big Sur Version 11.7 (20G817)

jairo-bc commented 2 years ago

@stanfabrics That error comes from node-sass not able to compile your version of scss code. Unfortunately, it didn't give you the filename (just the stdin), but I think you can try to search in theme folder by css selector name (from the error message)