Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robregonm opened this issue Mar 29, 2024 · 1 comment

Comments

@robregonm
Copy link

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

@J3m5
Copy link

J3m5 commented Apr 9, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants