buttons / vue-github-button Goto Github PK
View Code? Open in Web Editor NEW:octocat: Unofficial github:button component for Vue.js
Home Page: https://buttons.github.io
License: BSD 2-Clause "Simplified" License
:octocat: Unofficial github:button component for Vue.js
Home Page: https://buttons.github.io
License: BSD 2-Clause "Simplified" License
Thx for your work! This project is very useful for me, but i wonder if you can provide a typescript declaration (.d.ts) file?
That's will be convenient for vue+typescript
Hello, I met some errors when using it in my Vite4 project(Vue3, Typescript).
The version of vue-github-button is 3.1.0
.
Here is my code:
<script setup lang="ts">
import GithubButton from 'vue-github-button'
</script>
<template>
<a-card style="text-align: center" :bordered="false">
<div>
<github-button href="https://github.com/ntkme">Follow @ntkme</github-button>
</div>
</a-card>
</template>
<style lang="less" scoped>
</style>
I think would be useful to show on the readme.md the npm command to install the package.
When I try to use the component it gives me the error in index.js line 3:
Uncaught TypeError: Cannot read property 'extend' of undefined
I think it may be because my project uses Vue 3 and the component is not compatible.
Hi! I added this package recently to one of my projects and I am getting this error when I load any page that is using this component during Server Side Rendering with Nuxt.
In localhost the error is "Cannot use import statement outside a module", but the error in Production is "ERROR render function or template not defined in component: anonymous".
I though initially that it could be an own error at coding, but I tried to remove the import of this package and I am not getting this error then.
My technical specifications are the following:
Thank you so much.
This is causing an issue in my Vue 3 / TypeScript project (the project won't build error TS2306: File '/code/node_modules/vue-github-button/index.d.ts' is not a module.
).
I've worked around it by overriding the declaration, with the following content:
declare const GithubButton: import("vue").DefineComponent<{
href?: string
ariaLabel?: string
title?: string
dataIcon?: string
dataColorScheme?: string
dataSize?: string
dataShowCount?: string
dataText?: string
}>
export default GithubButton
Would be nice if a proper index.d.ts
was included.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.