Coder Social home page Coder Social logo

Comments (8)

danplaton4 avatar danplaton4 commented on June 18, 2024

Any updates on this, I'm still getting this error when starting a dev server.

from vue-social-sharing.

aungzawpyae avatar aungzawpyae commented on June 18, 2024

Cannot start nuxt: Cannot read properties of undefined (reading 'Index') 09:18:44

at nuxtVueWaitModule (node_modules/vue-social-sharing/nuxt/index.js:21:50)
at installModule (node_modules/@nuxt/kit/dist/index.mjs:416:9)
at async initNuxt (node_modules/nuxt/dist/index.mjs:1825:7)
at async load (node_modules/nuxi/dist/chunks/dev.mjs:6779:9)
at async Object.invoke (node_modules/nuxi/dist/chunks/dev.mjs:6840:5)
at async _main (node_modules/nuxi/dist/cli.mjs:50:20)

from vue-social-sharing.

doseofted avatar doseofted commented on June 18, 2024

I'm facing this issue as well on Nuxt 3. I'm using the module as a Vue plugin as a workaround.

~/plugins/socialSharing.ts:

import VueSocialSharing from "vue-social-sharing"

export default defineNuxtPlugin((nuxtApp) => {
	nuxtApp.vueApp.use(VueSocialSharing)
})

from vue-social-sharing.

gspgsp avatar gspgsp commented on June 18, 2024

same question:
ERROR Cannot start nuxt: Cannot read properties of undefined (reading 'Index') 09:31:17

at nuxtVueWaitModule (node_modules/vue-social-sharing/nuxt/index.js:21:50)

how to solve this?

from vue-social-sharing.

YasCoMa avatar YasCoMa commented on June 18, 2024

I'm facing this issue as well on Nuxt 3. I'm using the module as a Vue plugin as a workaround.

~/plugins/socialSharing.ts:

import VueSocialSharing from "vue-social-sharing"

export default defineNuxtPlugin((nuxtApp) => {
	nuxtApp.vueApp.use(VueSocialSharing)
})

This one worked and the nuxt v3 app rendered with no serious exceptions. But when i click in the social media links, it does not open the window to share.

from vue-social-sharing.

gspgsp avatar gspgsp commented on June 18, 2024

ok,this solved my problem.
i defined a plugin in plugins/vue-social-sharing.ts

import { defineNuxtPlugin } from '#app'
import VueSocialSharing from "vue-social-sharing";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueSocialSharing);
}

and in vue template:

  <div>
    <ShareNetwork
        network="Facebook"
        url="https://news.vuejs.org/issues/180"
        title="Say hi to Vite! A brand new, extremely fast development setup for Vue."
        description="This week, I’d like to introduce you to 'Vite', which means 'Fast'. It’s a brand new development setup created by Evan You."
        quote="The hot reload is so fast it\'s near instant. - Evan You"
        hashtags="vuejs,vite"
    >
      Share on Facebook
    </ShareNetwork>
  </div>

it worked very well.

from vue-social-sharing.

NidhalBB avatar NidhalBB commented on June 18, 2024

Any updates on this, I'm still getting this error !

from vue-social-sharing.

stale avatar stale commented on June 18, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from vue-social-sharing.

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.