The app cannot be exported to HTML: (0,0): Found 'if' outside any function: statements must be inside a function body. A '}' above probably closes a function too early, or a function header is missing.