Git Product home page Git Product logo

Comments (6)

fenilli avatar fenilli commented on June 20, 2024 1

The way the nuxt module works is by looking into resolved path of the nuxt.options.rootDir + options.configFile || 'formkit.config' I would guess using nuxt layers this would make nuxt.options.rootDir as the extension path, not the layer path, by adding a configFile with currentDir it probably resolves correctly.

from formkit.

challapradyumna avatar challapradyumna commented on June 20, 2024

Part of the issue is that dependencies of the layers are not automatically installed in the extended nuxt installation.

nuxt/nuxt#13367 (comment)
unjs/c12#51

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.

https://codesandbox.io/p/devbox/bold-cdn-ddcyqc

from formkit.

Archetipo95 avatar Archetipo95 commented on June 20, 2024

Thanks for the info about the issues. I'm not getting your proposed solution, did you just duplicate your code from the base layer?

from formkit.

Archetipo95 avatar Archetipo95 commented on June 20, 2024

Also this could be linked to our issue: nuxt-modules/tailwindcss#826

from formkit.

challapradyumna avatar challapradyumna commented on June 20, 2024
  • Duplicated formkit.config.ts formkit.theme.ts
  • Installed and registered @formkit/nuxt module in playground.

from formkit.

Archetipo95 avatar Archetipo95 commented on June 20, 2024

I guess I found that a good solution is just putting configFile: join(currentDir, './formkit.config.ts'), in the nuxt.config under FormKit settings.
I don't know why but it's working. I updated the reproduction code so you can check it.
I will leave this issue open for now, I anyone from the FormKit team wants to check what's going on.

from formkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.