Comments (8)
Any updates on this, I'm still getting this error when starting a dev server.
from vue-social-sharing.
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.
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.
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.
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.
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.
Any updates on this, I'm still getting this error !
from vue-social-sharing.
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)
- How to add socials such as Tiktok, Twitch.tv using this library? HOT 1
- Pinterest Share Button Can't Work After Closing the Tab Open (Mobile Safari) HOT 1
- Nuxt3 nuxt.config.ts module error HOT 11
- Issue Uncaught DOMException: Permission denied to access property "__v_isRef" on cross-origin object HOT 7
- LinkedIn share on mobile opens the App but doesnt share content HOT 1
- SMS share problem : Android13 device can not use sms share. the body message get lost HOT 1
- Can you please add Medium network? HOT 1
- Cannot read properties of undefined (reading 'Index') HOT 8
- Types diverge from the code HOT 1
- share by line, not the "url" I defined but to the domain HOT 1
- Range Issue, When I am using min and max value dynamically it is giving different values as I take slider from min and bring it back to the min end. It was 23000 but now it is showing 20000 05 61000 HOT 1
- When click share via LINE, there are errors keep appearing until popup closed HOT 3
- This library appears to be busted when using Vue 3's script setup syntax. HOT 1
- Support for Kakao Talk HOT 1
- Change Twitter to X. HOT 2
- nuxt 3 implement HOT 3
- Fail to logging into twitter
- Uncaught DOMException: An attempt was made to break through the security policy of the user agent. HOT 17
- Error in v-on handler: "SecurityError: An attempt was made to break through the security policy of the user agent." HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-social-sharing.