JavaScript Everywhere

Errata for JavaScript Everywhere

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date Submitted
PDF Page 11

Thank you for the good book. In Ch2 "API Introduction", I've tried to git clone the project repository, and install the dependencies, but I got an error message, as per the following, could you please advise how I can rectify it: C:\projects\notedly>git clone Cloning into 'api'... Warning: Permanently added the RSA host key for IP address '' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Thanks in advance for your help

Dan Al  Mar 18, 2021 
Printed Page 147
first code block

In the version of date-fns as of 05/2021, parseISO needs to be used on the date string. Also it objects to the use of YYYY for the year part. Therefore, {format(note.createdAt, 'MMM Do YYYY')} needs to become: {format(parseISO(note.createdAt), 'MMM do yyyy')}

Paul Makin  May 09, 2021 
Printed Page 163-174
Various points throughout the "Local State Management"

The version of the Apollo client at 05/2021 not longer supports cache.writedata. The solution I found was to use the Apollo tutorial at, which makes use of "makeVar" instead. This needs an extra file to hold the cache definitions and queries, but, then potentially simplifies the other implementation.

Paul Makin  May 09, 2021 
Printed Page 179
NoteForm's Form.onSubmit function

In the current print version, it says ``` onSubmit={e => { [...] props.action({ variables: ...values } }); }} ``` Instead it must be ``` onSubmit={e => { [...] props.action({ variables: ...value } }); }} ``` So value instead of values. In the current version, the code won't work.

Nils Müller  May 03, 2020