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

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

image

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.

@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!

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