Hello!
I have just finished a course in javascript fullstack with react. and i was very exited do see react deluge.
the problem is i cant install . i get error:
Cannot find namespace 'JSX'.
Found 16 errors.
../../../../../../node_modules/@types/react-calendar/index.d.ts:15:57 - error TS2503: Cannot find namespace 'JSX'.
15 export default function Calendar(props: CalendarProps): JSX.Element;
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:36:86 - error TS2503: Cannot find namespace 'JSX'.
36 navigationLabel?: (props: { date: Date, view: Detail, label: string }) => string | JSX.Element | null;
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:38:25 - error TS2503: Cannot find namespace 'JSX'.
38 next2Label?: string | JSX.Element | null;
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:40:24 - error TS2503: Cannot find namespace 'JSX'.
40 nextLabel?: string | JSX.Element;
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:52:25 - error TS2503: Cannot find namespace 'JSX'.
52 prev2Label?: string | JSX.Element | null;
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:54:24 - error TS2503: Cannot find namespace 'JSX'.
54 prevLabel?: string | JSX.Element;
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:55:55 - error TS2503: Cannot find namespace 'JSX'.
55 renderChildren?: (props: CalendarTileProperties) => JSX.Element | null; // For backwards compatibility
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:64:17 - error TS2503: Cannot find namespace 'JSX'.
64 tileContent?: JSX.Element | ((props: CalendarTileProperties) => JSX.Element | null);
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:64:67 - error TS2503: Cannot find namespace 'JSX'.
64 tileContent?: JSX.Element | ((props: CalendarTileProperties) => JSX.Element | null);
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:81:52 - error TS2503: Cannot find namespace 'JSX'.
81 export function MonthView(props: DetailViewProps): JSX.Element;
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:82:51 - error TS2503: Cannot find namespace 'JSX'.
82 export function YearView(props: DetailViewProps): JSX.Element;
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:83:53 - error TS2503: Cannot find namespace 'JSX'.
83 export function DecadeView(props: DetailViewProps): JSX.Element;
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:84:54 - error TS2503: Cannot find namespace 'JSX'.
84 export function CenturyView(props: DetailViewProps): JSX.Element;
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:95:55 - error TS2503: Cannot find namespace 'JSX'.
95 renderChildren?: (props: CalendarTileProperties) => JSX.Element | null; // For backwards compatibility
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:97:17 - error TS2503: Cannot find namespace 'JSX'.
97 tileContent?: JSX.Element | ((props: CalendarTileProperties) => JSX.Element | null);
~~~
../../../../../../node_modules/@types/react-calendar/index.d.ts:97:67 - error TS2503: Cannot find namespace 'JSX'.
97 tileContent?: JSX.Element | ((props: CalendarTileProperties) => JSX.Element | null);
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] prepare: yarn build
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/doctor/.npm/_logs/2020-12-07T07_07_30_943Z-debug.log
I dont know how to fix this.
Any help wpould be aprechiated. thanks
Im running Manjaro