# Async/await en el plugin: funciona en la instancia de desarrollo, no en la instancia de Docker

**URL:** <https://meta.discourse.org/t/async-await-in-plugin-works-in-dev-instance-not-in-docker-instance/82363>\
**Category:** Development\
**Created:** [6 Marzo, 2018 22:23 UTC](https://meta.discourse.org/t/async-await-in-plugin-works-in-dev-instance-not-in-docker-instance/82363 "2018-03-06T22:23:29Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![spirobel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spirobel/32/170908_2.png) [@spirobel](https://meta.discourse.org/u/spirobel)\
**Post date:** [2 Mayo, 2020 10:11 UTC](https://meta.discourse.org/t/async-await-in-plugin-works-in-dev-instance-not-in-docker-instance/82363/14 "2020-05-02T10:11:08Z")

</div>

Yo también tengo este problema

> <https://github.com/spirobel/projects/issues/1>
>
> Trying to enable this plugin into the current version of Discourse fails with th…e following output.
> 
> \`\`\`ruby
> 78954.470854151 Compressing: plugins/projects-fe2ea5a8cfbe65a7a4c2549cf8898efc05189a6ac16db43af79144ec69a9432a.js
> uglifyjs '/var/www/discourse/public/assets/plugins/\_projects-fe2ea5a8cfbe65a7a4c2549cf8898efc05189a6ac16db43af79144ec69a9432a.js' -m -c -o '/var/www/discourse/public/assets/plugins/projects-fe2ea5a8cfbe65a7a4c2549cf8898efc05189a6ac16db43af79144ec69a9432a.js' --source-map "base='/var/www/discourse/public/assets/plugins',root='/assets/plugins',url='/assets/plugins/projects-fe2ea5a8cfbe65a7a4c2549cf8898efc05189a6ac16db43af79144ec69a9432a.js.map'"
> Parse error at \_projects-fe2ea5a8cfbe65a7a4c2549cf8898efc05189a6ac16db43af79144ec69a9432a.js:104,21
> destroy: async function destroy(deleted\_by) {
> ^
> ERROR: Unexpected token: keyword «function», expected: punc «,»
> at JS\_Parse\_Error.get (eval at \<anonymous\> (/usr/lib/node\_modules/uglify-js/tools/node.js:18:1), \<anonymous\>:71:23)
> at fatal (/usr/lib/node\_modules/uglify-js/bin/uglifyjs:312:27)
> at run (/usr/lib/node\_modules/uglify-js/bin/uglifyjs:255:9)
> at Object.\<anonymous\> (/usr/lib/node\_modules/uglify-js/bin/uglifyjs:173:5)
> at Module.\_compile (internal/modules/cjs/loader.js:778:30)
> at Object.Module.\_extensions..js (internal/modules/cjs/loader.js:789:10)
> at Module.load (internal/modules/cjs/loader.js:653:32)
> at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
> at Function.Module.\_load (internal/modules/cjs/loader.js:585:3)
> at Function.
> \`\`\`

Uso name.js.es6 en todas partes.

> **[Build software better, together](https://github.com/search?q=repo%3Aspirobel%2Fprojects+async)**
>
> GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.

¿Esto significa que necesito eliminar async/await?

---

_[View the full topic](https://meta.discourse.org/t/async-await-in-plugin-works-in-dev-instance-not-in-docker-instance/82363)._
