# Modern Front-End Development for Rails, Second Edition: some typos in chapters 1-3

**URL:** <https://forum.devtalk.com/t/modern-front-end-development-for-rails-second-edition-some-typos-in-chapters-1-3/141701>\
**Category:** PragProg Customers\
**Tags:** book-modern-front-end-development-for-rails-second-edition, errata\
**Created:** [30 January 2024 11:37 UTC](https://forum.devtalk.com/t/modern-front-end-development-for-rails-second-edition-some-typos-in-chapters-1-3/141701 "2024-01-30T11:37:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![albertchae](https://forum.devtalk.com/user_avatar/forum.devtalk.com/albertchae/32/5873_2.png) [@albertchae](https://forum.devtalk.com/u/albertchae)\
**Post date:** [30 January 2024 11:37 UTC](https://forum.devtalk.com/t/modern-front-end-development-for-rails-second-edition-some-typos-in-chapters-1-3/141701/1 "2024-01-30T11:37:32Z")

</div>

Title: Modern Front-End Development for Rails, Second Edition P1.0

Hi @noelrappin , I am enjoying the book so far but just saw a few issues and typos I wanted to report

**Chapter 1, Page 18 says:**

> Right now we need to update our dev scripts to use tsc-watch

The text leading up to this was all referring to `tsconfig.json`, so it’s not immediately clear that the dev scripts are in `package.json`

**Chapter 2, Page 33 says:**

> … the recommendation is to use `button_to` rather thank `link_to`, …

s/thank/than

**Chapter 3, Page 58 says:**

> `> fav = fav = document.querySelector...`

The extra `fav = ` seems unnecessary and this could be ` fav = document.querySelector...`

> `> fav.dataset.favoriteToggleVisibleValue = "false"`  
> `"False"`

After running `fav.dataset.favoriteToggleVisibleValue = "false"` in console for both Firefox and Chrome, I see `"false"` with lower case f as the output

---

<div class="post-metadata">

**Author:** ![noelrappin](https://forum.devtalk.com/user_avatar/forum.devtalk.com/noelrappin/32/481_2.png) [@noelrappin](https://forum.devtalk.com/u/noelrappin)\
**Post date:** [1 February 2024 15:10 UTC](https://forum.devtalk.com/t/modern-front-end-development-for-rails-second-edition-some-typos-in-chapters-1-3/141701/2 "2024-02-01T15:10:16Z")

</div>

Thanks for the notes, they will be fixed if and when we do a new printing
