Why have I got the «PHP Fatal error: Uncaught Magento\Framework\Exception\LocalizedException: Area code is not set» failure?

2 posts were split to a new topic: How can I fix the «TypeError: require.toUrl is not a function» issue?