nicolasbeauvais / vue-social-sharing

A renderless Vue.js component for sharing links to social networks, compatible with SSR
https://nicolasbeauvais.github.io/vue-social-sharing/
MIT License
1.39k stars 196 forks source link

vue3 error ‘’Network fakeblock does not exist‘’ #321

Closed xiami2020 closed 1 year ago

xiami2020 commented 1 year ago

use vue3.2 , "vue-social-sharing": "^4.0.0-alpha4"

main.ts

app.use(VueSocialSharing,{
  networks: {
    fakeblock: 'https://baidu.com?url=@url&title=@title'
  }
})
app.use(ElementPlus).mount('#app')

template

  <ShareNetwork
    network="fakeblock"
    url="https://news.vuejs.org/issues/180"
    title="Say hi to Vite! A brand new, extremely fast development setup for Vue."
  >
    <i class="fab fah fa-lg fa-react"></i>
    <span>Custom Network</span>
  </ShareNetwork>

error is ‘’Network fakeblock does not exist‘’ ,

Julyemerson commented 1 year ago

Maybe you forgot the 's'.

<ShareNetwork networks="fakeblock" url="https://news.vuejs.org/issues/180" title="Say hi to Vite! A brand new, extremely fast development setup for Vue."

Custom Network

xiami2020 commented 1 year ago

Maybe you forgot the 's'.

<ShareNetwork networks="fakeblock" url="https://news.vuejs.org/issues/180" title="Say hi to Vite! A brand new, extremely fast development setup for Vue."

<i class="fab fah fa-lg fa-react"></i>
<span>Custom Network</span>

thanks for the reply,Adding 's' reported another error image

stale[bot] commented 1 year ago

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.