-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Nuxt Layers and FormKit theme #1279
Comments
Part of the issue is that dependencies of the layers are not automatically installed in the extended nuxt installation. nuxt/nuxt#13367 (comment) Another part of the issue is that content files in tailwind.config.js are relative to the root directory of the extended nuxt installation not the layer. Hence the join in layer nuxt.config.js for CSS file. |
Thanks for the info about the issues. I'm not getting your proposed solution, did you just duplicate your code from the base layer? |
Also this could be linked to our issue: nuxt-modules/tailwindcss#826 |
|
I guess I found that a good solution is just putting |
The way the nuxt module works is by looking into resolved path of the |
Reproduction
https://github.com/Archetipo95/test-formkit-theme
Describe the bug
I'm trying to use Nuxt Layers feature (https://nuxt.com/docs/getting-started/layers) with FormKit, but it seams that the theme is not working.
I made a repo for reproduction (https://github.com/Archetipo95/test-formkit-theme), I started from official Nuxt Layer starter (https://github.com/nuxt/starter/tree/layer).
I tried without layer configuration and the theme is working as expected.
To start the repo use pnpm i and pnpm dev
If you want to try with normal configuration without the nuxt layer:
1- change tsconfig.json to "extends": "./.nuxt/tsconfig.json"
2- use the command pnpm nuxt dev
This is the conversation I had on the support forum with @fenilli https://discord.com/channels/793529058377072650/1220439418943311912
Environment
MacOs
The text was updated successfully, but these errors were encountered: