How to Solve "Cannot use import statement outside a module" Error

How to Solve "Cannot use import statement outside a module" Error