Skip to content

The component does not work anymore on server-side rendering #195

Open
@Tarrask

Description

@Tarrask

This concern nuxt.js, the server is complaining about "document is not defined" if we register the Icon component in a plugin as a global component.

the reason that I identify is that the distribution now ship a "precompiled" Icon.js file instead of Icon.vue file and the Icon.js file has referenced to document.

Is it possible to ship both files ? So with nuxt.js we can, use it like that in a plugin :

import Vue from 'vue'
import Icon from 'vue-awesome/components/Icon.vue'

Vue.component('FaIcon', Icon)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions