uidotdev / react-course

Code for ui.dev's "Classic React" course

Home Page:https://ui.dev/classic-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile errors

eclectic-coding opened this issue · comments

commented

I started having trouble getting 'popular.js` to compile with "Caching Repos" episode. Ther error message at the console is:

Failed to compile.

./src/components/Popular.js
  Line 63:  'error' is not defined  no-undef

Line 63 reads see here:

.catch(() => {
          console.warn('Error fetching repos: ', error)

I think the line should read the following, and it seems to work fine:

.catch(() => {
          console.warn('Error fetching repos: ', this.state.error)

Thanks for a great course and I am learning a lot.

Closing since there's another issue about this. Thanks though!