api-platform / api-platform/create-client

Nuxt Generator with `-f openapi3` options is not working with `500` error code.

未关闭
#365 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
376
派生
132
PR 合并指标
30 天内没有已合并 PR

描述

**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**

![image](https://user-images.githubusercontent.com/58850480/219851408-8cf120f0-2c45-4179-bfa0-dbdb98dcf7bd.png)

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:
1. How to overwrite the generated files ? I can't find a way to do that.
2. Does some kind of "Headless" generator is possible/on the scope of this project so that UI components/pages is not generated?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。