'How to resolve polymer import issue

I am getting this error when run the polymer application. So, How to resolve this issue

"Cannot use import statement outside a module".

If anyone know the answer please help to resolve this issue.

Demo : https://stackblitz.com/edit/polymer-3-template-nw9tmy?file=index.html,custom-element.js,index.js



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source