TS4025

error TS4025: Exported variable ‘App‘ has or is using private name ‘FC‘.

Broken Code ❌

1
2
3
4
5
import React from 'react';

const App: FC = (): JSX.Element => {
return <></>;
};

Fixed Code ✔️

When using an external type (like FC) you also have to make sure that it is imported:

1
2
3
4
5
import React, {FC} from 'react';

const App: FC = (): JSX.Element => {
return <></>;
};