ZNTC0300: 'import' declaration is only allowed in module code
ZNTC0300
Section titled “ZNTC0300”‘import’ declaration is only allowed in module code
Category: Parser: Import/Export
Reproduction
Section titled “Reproduction”import { foo } from "./bar";How to fix
Section titled “How to fix”See the error message for cause and resolution.