Nuxt Generator with `-f openapi3` options is not working with `500` error code.
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- nuxtjs, openapi, typescript
- Ambito
- frontend
Direzione di ricerca
Segui i passaggi del generatore Nuxt nella documentazione di API Platform collegata, usando l’opzione -f openapi3 e aggiungendo docs.json all’URL. Inizia dalla riga 35 del components/book/BookList.js generato e riproduci l’errore hydra:member; l’attività è completata quando un client Nuxt generato con OpenAPI 3 gestisce la risposta 500 senza il fallimento dovuto alla proprietà null.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
API Platform version(s) affected: x.y.z
Description
Nuxt Generator with -f openapi3 options is not working with 500 error code.
The error message is:
Cannot read properties of null (reading 'hydra:member')
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async setup (C:\Users\LazyGeniusMan\git\nuxt-openapi\components\book\BookList.js:35:18)
How to reproduce
Follow step on https://api-platform.com/docs/create-client/nuxt/ but using -f openapi3 option and add docs.json to url.
Possible Solution
Additional Context

I also tried different OpenAPI 3 specs from Swagger's Pet Store 3, it still gave me the same error. I also tried Quasar generator with OpenAPI 3 specs and it's working fine.
A bit out of topic of this bug, I have some questions:
- How to overwrite the generated files ? I can't find a way to do that.
- Does some kind of "Headless" generator is possible/on the scope of this project so that UI components/pages is not generated?
- Lingua principale
- TypeScript
- Stelle
- 376
- Fork
- 132
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di api-platform/create-client
-
[potential Security Alert] New `test-vue-app` script added in `@api-platform/client-generator@0.8.0` Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
api-platform/create-client#396 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
api-platform/create-client#397 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
api-platform/create-client#395 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
api-platform/create-client#394 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
api-platform/create-client#393 · 1 commento ·
Tutte le issue di api-platform/create-client
Issue simili
-
blocklist removal
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
MetaMask/eth-phishing-detect#296544 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pastelsky/bundlephobia#1122 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100