wowthemesnet / affiliates-jekyll-theme

Affiliates - Jekyll Blogging Theme for Affiliate Marketers
https://wowthemesnet.github.io/affiliates-jekyll-theme/
MIT License
340 stars 443 forks source link

Getting this error after running jekyll serve --watch #21

Open manan-bajaj opened 1 year ago

manan-bajaj commented 1 year ago

610:21 root stylesheet Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/theme.scss': Expected identifier.

manan-bajaj commented 1 year ago

Thanks for your reply. I tried the above solution, but it didn't work. It gave the same error message. ERROR MESSAGE: Error: Expected identifier. ╷ 610 │ transition: all.3s; │ ^ ╵ /assets/css/theme.scss 610:21 root stylesheet Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/theme.scss': Expected identifier.

  Jekyll 4.3.2   Please append `--trace` to the `serve` command
                 for any additional information or backtrace.

On Mon, Apr 3, 2023 at 9:37 AM Esquilo Verde @.***> wrote:

Delete the Gemfile.lock, and type bundle install, and then run jekyll serve again =)

— Reply to this email directly, view it on GitHub https://github.com/wowthemesnet/affiliates-jekyll-theme/issues/21#issuecomment-1493613545, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI4VT6JHXJPR22QNEMZ7PLW7JEIJANCNFSM6AAAAAAWMIDJLQ . You are receiving this because you authored the thread.Message ID: @.***>

hari-jeya commented 1 year ago

I tried the above solution, but it didn't work. It gave the same error message. ERROR MESSAGE: Error: Expected identifier. ╷ 610 │ transition: all.3s; │ ^ ╵ /assets/css/theme.scss 610:21 root stylesheet Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/theme.scss': Expected identifier. ------------------------------------------------ Jekyll 4.3.2 Please append --trace to the serve command for any additional information or backtrace.

i have the same issue, can someone help me ?

bressler1995 commented 1 year ago

I am also seeing the same issue. I removed / commented out the line and it worked fine. I am not too savvy on this Scss stuff but something about the syntax 'transition: all.3s;' it does not like. Also putting a space between all and .3s worked, it must see it as invalid syntax when it compiles. Otherwise, works fine.

Newles commented 1 year ago

I know I'm a little late but I found the solution to this error, what happens is that the one who uploaded the code using sass has conversions and does not respect spaces and line breaks, therefore, so that it can run without problems, what has to be done I mean, if you use vscode, format the sass files and then run the command again and it will work without a problem. It's a very good theme. I try it to be inspired to make my own theme for this framework, which is Jekyll, and first I'm seeing how it works

MiqueiasDevGames commented 1 year ago

Chatgpt fix:

Check for incomplete declarations: Make sure all CSS property declarations are complete and properly formed. For example, a statement like #transition: all.3s; it is incorrect. Must be transition: all 0.3s; or something similar.