PDA

View Full Version : await is only valid in async function



jabussko2
27 Dec 2018, 4:10 AM
I'm tried to build my testing application, using

ext-build app build admindesktop testing

command and got the error


Sencha ExtBuild v1.0.3
C:\Users\Webchili\AppData\Roaming\npm\node_modules\@sencha\ext-build\app\buildAsync.js:51
await util.senchaCmdAsync(parms, me.verbose)
^^^^^


SyntaxError: await is only valid in async function
at new Script (vm.js:74:7)
at createScript (vm.js:246:10)
at Object.runInThisContext (vm.js:298:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)