jekyll-theme-hpstr
jekyll-theme-hpstr copied to clipboard
Scss encountered an error while converting 'assets/css/style.scss'
Hey,
I'm getting an error with my build, what am I doing wrong?
Configuration file: /builds/benisameme/test-project/_config.yml Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly. Source: /builds/benisameme/test-project Destination: public Incremental build: disabled. Enable with --incremental Generating... Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/style.scss': Invalid US-ASCII character "\xE2" on line 5 jekyll 3.5.2 | Error: Invalid US-ASCII character "\xE2" on line 5
Full log: https://gitlab.com/benisameme/test-project/-/jobs/34394548
Repo: https://gitlab.com/benisameme/test-project/tree/master
assets/css/main.scss: https://gitlab.com/benisameme/test-project/blob/master/assets/css/main.scss
Looks like an encoding issue. Probably has more to do with how you have your Ruby environment setup than anything related to the theme's files.
Give this thread on jekyll/jekyll a look.
Alright, Thanks! (sorry for the late reply)
I encountered the same issue and solved to create style.scss
file filled below content in assets/css
folder.
---
---
@charset "UTF-8";
My jekyll build is being done by AWS CodeBuild, and I found I needed to add these lines to the buildspec.yml
file:
pre_build:
commands:
- export LC_ALL="C.UTF-8"
- export LANG="en_US.UTF-8"
- export LANGUAGE="en_US.UTF-8"
Same problem here with a post-receive hook which had ever worked fine. I reported some details on Stackoverflow.
I solved by adding at the top of my hook.
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
Not sure it is the best option.