Code Monkey home page Code Monkey logo

vue-github-button's People

Contributors

dependabot[bot] avatar ntkme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vue-github-button's Issues

Typescript declaration

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

Errors in Vite project

Hello, I met some errors when using it in my Vite4 project(Vue3, Typescript).

截屏2023-04-15 下午12 07 17

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>

Vue 3 support

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.

Cannot use import statement outside a module error during Server Side Render in nuxt

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:

  • Node version: 16.13.1
  • NPM version: 8.1.2
  • O.S.: Windows 10

Thank you so much.

Package includes empty index.d.ts

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.

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.