api-platform / create-client

Generate React or Vue.js-based Progressive Web Apps from an Hydra-enabled API. Also support React Native.
https://api-platform.com/docs/client-generator/
MIT License
370 stars 132 forks source link

An Error ERR_UNHANDLED_REJECTION #318

Closed bhtomming closed 2 years ago

bhtomming commented 2 years ago

API Platform version(2.7) affected: x.y.z "vuetify": "^2.4.0","vuex-map-fields": "^1.4.1" generate-api-platform-client 0.7.3 Description

When I run npx @api-platform/client-generator -g vuetify https://demo.api-platform.com src/ ,it can generator part of resoures ,but also return an error

Additional Context

node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".
Mister6mik commented 2 years ago

Have you solved your issue ?

API Platform version(2.7) affected: x.y.z "vuetify": "^2.4.0","vuex-map-fields": "^1.4.1" generate-api-platform-client 0.7.3 Description

When I run npx @api-platform/client-generator -g vuetify https://demo.api-platform.com src/ ,it can generator part of resoures ,but also return an error

Additional Context

node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".
alanpoulain commented 2 years ago

I cannot reproduce it in the main branch: image