cannot use import statement outside a module
The Uncaught SyntaxError: cannot use import statement outside a module mainly occurs when developers use the import statement on the CommonJS instead of require statement. What is SyntaxError: cannot use import statement…