Compile errors
eclectic-coding opened this issue · comments
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!