Dealing with Strictness

Compiling the file, we get a few errors:

  • The venue-display file that is kicking off the call to React is not handling a potential undefined value.

  • The SortController is doing a parseInt with a potentially null value.

  • The debounce method in SearchController is unhappy and we may just need to restructure that.

  • The CalendarController has a few cases where we use target.dataset.

  • The thunk dispatches in App don’t like that they may potentially have nulls.

  • All the dispatch calls that are using React Thunk are reporting a type error about VenueAction and VenueThunk.

Using other strict options would give us more errors. In particular, I think the “no explicit any” might be a big problem, but I think this should be ...

Get Modern Front-End Development for Rails, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.