When building web applications, you may encounter SyntaxError: Cannot use import statement outside a module error. Here is how to fix it using Node.
This error is potentially raised when using JavaScript or TypeScript in the back-end while developing. However, it could also be encountered client side.
