api-platform / api-platform/create-client

The requested module does not provide an export named 'Ref' in Nuxt Form

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

描述

**API Platform version(s) affected**: 3.2.18

**Description**
Error when loading generated Form page for a resource: The requested module '...' does not provide an export named 'Ref'

**How to reproduce**
- Create an Entity e.g. "Animal"
- Create a Nuxt project
- Create a client (e.g. yarn create @api-platform/client https://localhost/ . --generator nuxt --resource animal )
- Load https://localhost/animal/create
You'll get a message saying: "The requested module does not provide an export named 'Ref'"

**Possible Solution**
Just go to `./components/animal/AnimalForm.vue` and replace:
`import { Ref } from "vue";`
to
`import type { Ref } from "vue";`

**Additional Context**
Nuxt v.3.11.1
Vue v.3.4.21

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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