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
373 stars 132 forks source link

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

Open robregonm opened 8 months ago

robregonm commented 8 months ago

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

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

J3m5 commented 7 months ago

Hello @robregonm

Thank you for bringing this to our attention. We plan to address this issue in an upcoming release. Please stay tuned for updates!