在我的本地开发模式下,此代码可以正常工作:
{enable && (
<Nav
title={hasFlagEnabled ? 'flag enabled' : 'flag disabled'}
url={identified? `${URL}` : `${URL}/xyz.htm`}
target={identified? '_blank' : ''}
/>
)}
但是当我在编译环境(Prod)中运行时,相同的代码会失败
错误链接:https://reactjs.org/docs/error-decoder.html/?invariant=152&args[]=f
错误:
react-dom.production.min.js:13 Uncaught Invariant Violation: Minified React error #152; visit https://reactjs.org/docs/error-decoder.html?invariant=152&args[]=f for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
知道为什么会这样吗?