src/components/DynamicComponent/index.tsx:28:24 - error TS2339: Property 'lazy' does not exist on type 'typeof React'.
28 component: React.lazy(() => import(this.state.url)),
~~~~
src/components/DynamicComponent/index.tsx:46:14 - error TS2339: Property 'Suspense' does not exist on type 'typeof React'.
46 <React.Suspense fallback={<div>Loading...</div>}>
~~~~~~~~
src/components/DynamicComponent/index.tsx:55:15 - error TS2339: Property 'Suspense' does not exist on type 'typeof React'.
55 </React.Suspense>
~~~~~~~~
React v.16.6 has been released and it brings lazy and Suspense.
Running
tsc --build tsconfig.jsonthrows:@johnnyreilly @bbenezech @pzavolinsky