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

VueForm not Working with Nuxt Layers #96

Open
jofmi opened this issue Dec 12, 2023 · 1 comment
Open

VueForm not Working with Nuxt Layers #96

jofmi opened this issue Dec 12, 2023 · 1 comment
Assignees

Comments

@jofmi
Copy link

jofmi commented Dec 12, 2023

Environment

nuxt 3.7.0
vueforms

Reproduction

Describe the bug

The app cannot be rendered because it is missing vueform.config.ts (since this file is sitting in the layer, and not in the main app).

The following error is shown: ERROR [nuxt] Could not compile template vueformPlugin.mjs.

Putting vueform.config.ts in the main app solves this error.

Additional context

Other nuxt packages like @nuxtjs/tailwindcss support that their config file is taken from the layer if no file is found in the main app. Alternatively, nuxt-ui adds its config to app.config.ts.

Logs

No response

@mihalcea-bogdan-daniel
Copy link

Isn't this in the Nuxt layers documentation?

Make sure any dependency imported in the layer is explicitly added to the dependencies. The nuxt dependency, and anything only used for testing the layer before publishing, should remain in the devDependencies field.

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

No branches or pull requests

3 participants