Cannot use import statement outside a module

Use this approach… your js file must be built…