Cannot use import statement outside a module [React TypeScript …
https://www.freecodecamp.org/news/cannot-use-import-statement-outside-a-module-react-typescript-error-solved/
WEBNov 15, 2022 · When building a web application, you may encounter the SyntaxError: Cannot use import statement outside a module error. This error might be raised when using either JavaScript or TypeScript in the back-end. So you could be working on the client side with React, Vue, and so on, and still run into this error.
DA: 68 PA: 96 MOZ Rank: 90