title: TypeORM: SyntaxError: Cannot use import statement outside a module when creating migration
body: <p>I came across a problem when setting up TypeORM within my NextJS typescript project whereby i was getting the following error: <code>SyntaxError: Cannot use import statement outside a module</code> when trying to create migration from my entities.</p>