By using `console.error` even in the development environment, we will provide useful information such as the reference to the actual ES module that failed and the code line where it happened
componentPromise = Promise.resolve(componentPromise as RouteComponent)
} else {
// display the error if any
- componentPromise = componentPromise.catch(
- __DEV__ ? err => err && warn(err) : console.error
- )
+ componentPromise = componentPromise.catch(console.error)
}
guards.push(() =>