This commit adds `ngDevMode` guard to throw some errors only in dev mode The ngDevMode flag helps to tree-shake these error messages from production builds (in dev mode everything will work as it works right now) to decrease production bundle size. PR Close #38674