Giter Site home page Giter Site logo

Comments (7)

benjamin-richardson avatar benjamin-richardson commented on September 14, 2024 1

I got this to work in Nuxt by using lazy-loading of the component, as well as wrapping it in the <no-ssr> built-in component of Nuxt.

I have my globally registered component nuxt/components/common/Loader.vue:

<template>
  <no-ssr>
    <vue-element-loading :active="active" :is-full-screen="isFullScreen" spinner="spinner" color="#8d655a" />
  </no-ssr>
</template>

<script>
export default {
  name: 'Loader',
  components: {
    VueElementLoading: () => {
      if (process.client) {
        return import('vue-element-loading');
      }
    },
  },
  props: {
    active: { type: Boolean, default: false },
    isFullScreen: { type: Boolean, default: false },
  },
};
</script>

For my solution, I was already wrapping the component anyway as I want it to be used consistently across my project with only a couple options available.

from vue-element-loading.

Sitronik avatar Sitronik commented on September 14, 2024

Hi, @runyasak

Fixed build netlify with rollup-plugin-uglify. Please merge and publish ๐Ÿ˜‰

from vue-element-loading.

Sitronik avatar Sitronik commented on September 14, 2024

up ๐Ÿ˜Œ

from vue-element-loading.

eadortsu avatar eadortsu commented on September 14, 2024

Has this issue been fixed.??
it is really needed for me

from vue-element-loading.

Sitronik avatar Sitronik commented on September 14, 2024

Has this issue been fixed.??
it is really needed for me

Hello, Yes of course but the creators of the repository still haven't done the merge.

I fixed in this PR

from vue-element-loading.

eadortsu avatar eadortsu commented on September 14, 2024

I just used your code version in your PR @Sitronik , it worked... thanks

from vue-element-loading.

Sitronik avatar Sitronik commented on September 14, 2024

I just used your code version in your PR @Sitronik , it worked... thanks

You are welcome, I am glad that i could help you

from vue-element-loading.

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.