Module build failed: Error: Cannot find module ‘babel-core’

Below error could show up after installing dependencies to a project from Package.json. For babel specific dependency, we might have to install separate babel/core to resolve this issue. Reference – All Hail, Babel!

Error – Expected an assignment or function call and instead saw an expression

Expected an assignment or function call and instead saw an expression is a common error whenever I forget adding return keyword to a function. In the else if return statement, I missed the return keyword, causing this error. Problem solved.

Error – TypeError: Cannot read property ‘map’ of undefined

Often while coding, there are instances when we tend to face challenges in the form of errors. I have been through this time a lot. In ReactJS, I have encountered this error multiple times which says, TypeError: Cannot read property ‘map’ of undefined Mostly while using API Fetch in my App this error pops up.Continue reading “Error – TypeError: Cannot read property ‘map’ of undefined”

Create your website with
Get started