# Chapter 20: Code snippet for style.css shows as undefined

**URL:** <https://forums.kodeco.com/t/chapter-20-code-snippet-for-style-css-shows-as-undefined/137948>\
**Category:** Server Side Swift with Vapor\
**Created:** [April 17, 2021, 11:01am UTC](https://forums.kodeco.com/t/chapter-20-code-snippet-for-style-css-shows-as-undefined/137948 "2021-04-17T11:01:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alobaili](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/alobaili/32/102075_2.png) [@alobaili](https://forums.kodeco.com/u/alobaili)\
**Post date:** [April 17, 2021, 11:01am UTC](https://forums.kodeco.com/t/chapter-20-code-snippet-for-style-css-shows-as-undefined/137948/1 "2021-04-17T11:01:06Z")

</div>

When I reached this part of the book “Cookies” when creating a footer for the accept cookies message, the code shows as “undefined”:

![image](https://files.chunter.kodeco.com/original/3X/b/a/bafe8cf51aabda92604af274031559a0e4a48539.png)

Fortunately I was able to find the correct code from the final version of the project materials. I thought it would be helpful to report this incase anyone faced the same issue.

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [April 19, 2021, 7:12am UTC](https://forums.kodeco.com/t/chapter-20-code-snippet-for-style-css-shows-as-undefined/137948/2 "2021-04-19T07:12:46Z")

</div>

@alobaili thanks for letting us know! We’ve picked this up as a bug in our ePub renderer (because it’s a language we don’t typically use) and should be rolling out a fix and updated ePub version soon!

---

<div class="post-metadata">

**Author:** ![joltguy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/joltguy/32/100397_2.png) [@joltguy](https://forums.kodeco.com/u/joltguy)\
**Post date:** [April 21, 2021, 11:07am UTC](https://forums.kodeco.com/t/chapter-20-code-snippet-for-style-css-shows-as-undefined/137948/3 "2021-04-21T11:07:30Z")

</div>

I’ve come across this too in the eBook for CSS snippets. Another option if you don’t want to dig the code out of the final project - you can grab it from the web version of the book:

[https://www.raywenderlich.com/books/server-side-swift-with-vapor/v3.0/chapters/20-web-authentication-cookies-sessions#toc-chapter-023-anchor-002](https://www.raywenderlich.com/books/server-side-swift-with-vapor/v3.0/chapters/20-web-authentication-cookies-sessions#toc-chapter-023-anchor-002)
