Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const TypeErrorsView = () => (
<ul>
{useList(typeErrors, error => {
// TODO: hide libdefs until errors are fixed
if (
process.env.NODE_ENV === 'production' &&
error.message[0].loc?.type === 'LibFile'
)
return null
return (
<li>
{error.message.map((message, key) => (
))}
{error.extra &&
error.extra.map((extra, key) => )}
</li>
)</ul>