eclipsesource / eclipsesource/tabris-js
Snippet app-event.jsx does not run in playground
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Description
### Problem description
The snippet [app-events.jsx](https://playground.tabris.com/?gitref=v3.0.0&snippet=app-events.jsx) throws an error when running in the playground.
```js
Could not load main module: Error: Could not parse ./app.js:./app.js:10: SyntaxError: Unexpected token (
tabris_1.app.onPause(async () => {
^
com.eclipsesource.v8.V8ScriptCompilationException
Error: Could not parse ./app.js:./app.js:10: SyntaxError: Unexpected token (
tabris_1.app.onPause(async () => {
^
com.eclipsesource.v8.V8ScriptCompilationException
at Function.value (:1:1487)
at t.a (:1:2275)
at t.i (:1:1963)
at t.i (:1:2040)
at t. (:1:1273)
at t.value (:1:1353)
at o (:1:3460)
at Object.tabris._start (:1:3654)
```
The snippet works fine when running locally.
### Expected behavior
The snippet should run properly as it does when running locally.
### Environment
- Tabris.js version: 3.0.1
- Device: Android
- OS: Android Q
### Code snippet
https://github.com/eclipsesource/tabris-js/blob/master/snippets/app-events.jsx
Contributor guide
Assessment
This issue has not been assessed yet.