I have created one React App using npx create-react-app my-app cmd (React 17 version). Now Well, I just tried to replace a classic
import Component from './Component'
to
const Component = React.lazy(() => import('./Component'));
and then
<React.Suspense fallback={<div>Loading.. </div>}>
<Component />
</React.Suspense>
but it throws error like SyntaxError: Unexpected token at import(6:22)
> 6 | const Component = React.lazy(() => import('./Component'));
Can anyone help me to resolve this?
And this is the suspense component

And this is the compilation output

My package.json looks like

