UnhandledPromiseRejection behavior on node 15
Node 15 changed UnhandledPromiseRejection behavior (more details here), and now instead of a warning, an exception is thrown.
This means that running the npm run start command in an environment with node 15 will not start the application correctly:
To fix this error, we need to explicitly control exceptions in promises (try catch if using async await, or .catch in blocks with .then).
Here is a code example that will cause the above exception to be thrown (src/pages/Transductor.vue):
And the fix:
Obviously using console.error is not the best alternative, but it can be a temporary solution so that the project can be executed