Skip to content

HTML class presets are broken in NuxtJS (+probably Vue) #156

Open
@thely

Description

@thely

In NuxtJS, using the HTML class presets turns up a window.lax is undefined error no matter how hard I try to make sure my plugin encapsulation of this library is actually client-side, which I definitely spent the better part of a day hitting my head against the wall over. But the lax.addElements() version of this library works fine in Nuxt so far. My guess is that the presets will probably break similarly in Vue, but I haven't tested that.

Here's my Codesandbox link. The index page uses lax.addElements() and works, the about page uses HTML classes and breaks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions