Closed sidharthv96 closed 3 years ago
Unfortunately, await
is not the same as deasync
. The problem is that eslint requires that plugins run synchronously, but postcss can run asynchronously - await
still runs asynchronously and returns a promise, which won't work. Whereas deasync is a bit of a hack to block the main node thread, forcing an asynchronous task to run synchronously.
I'd recommend taking a look at deasync's documentation to install its dependencies in your docker container.
Ohh.. I saw this waring on the main repo, so got a bit confused.
it's just a hack and I'd strongly recommend not to use it for anything.
I've changed the build image to node instead of node-alpine to fix the issue. Thanks for the confirmation!
It is causing docker builds to fail when using the node image without python. The functionality seems to be similar to
await promiseFunction()
.https://github.com/mermaid-js/mermaid-live-editor/issues/59#issuecomment-854401252