How to fix 'Uncaught SyntaxError: Cannot use import statement outside a module'

2 · Johnny SImpson · Aug. 7, 2022, 1:08 p.m.
The import statement outside of a module error is easy to fix, but relatively common. Let's look at how to fix this error in Javascript....