Giter Site home page Giter Site logo

Comments (7)

mcama avatar mcama commented on May 19, 2024 1

I confirm that setting the mode property to 'spa' (instead of mode: 'universal'), in nuxt.config.js, solves the issue with dropdowns.

from kutty.

praveenjuge avatar praveenjuge commented on May 19, 2024

Hey, is kutty updated to the latest 0.2.0 version?
And if that didn't work, did you properly register the plugin in Nuxt config? example here

from kutty.

mcama avatar mcama commented on May 19, 2024

Yes, kutty is on the latest version. Regarding the plugin, I'm registering the script (also Alpine) in nuxt.config.js file, like this:

export default {
        ...,
        script: [
            {
                src:
                    'https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js',
                body: true,
            },
            {
                src:
                    'https://cdn.jsdelivr.net/npm/kutty@latest/dist/kutty.min.js',
                body: true,
            },
        ],
        ...
}

from kutty.

praveenjuge avatar praveenjuge commented on May 19, 2024

alpine is already bundled with the kutty js, maybe that's the problem, can you remove the alpine script there and check?

from kutty.

mcama avatar mcama commented on May 19, 2024

I removed de alpine script but the error still persist. This the full error:

Uncaught ReferenceError: dropdown is not defined
    at eval (eval at l (kutty.min.js:1), <anonymous>:3:36)
    at l (kutty.min.js:1)
    at new he (kutty.min.js:1)
    at Object.initializeComponent (kutty.min.js:1)
    at kutty.min.js:1
    at kutty.min.js:1
    at NodeList.forEach (<anonymous>)
    at Object.discoverComponents (kutty.min.js:1)
    at Object.start (kutty.min.js:1)

Other components the use JS, such as dialogs, are working like a charm.

from kutty.

praveenjuge avatar praveenjuge commented on May 19, 2024

No idea what the error is, can you share full code in a minimal repo? It will help me identify why this error occurs

from kutty.

mcama avatar mcama commented on May 19, 2024

Hi. I've just created a minimal repo (where the issue can be reproduced) and added you as a collaborator.
Again, thank you for your help.

from kutty.

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.