Giter VIP home page Giter VIP logo

Comments (10)

matthew-dean avatar matthew-dean commented on June 26, 2024 1

I also discovered this. For some reason, this library defines ALL components as Chart components. You can see the issue right here:

declare module '@vue/runtime-core' {
    export interface GlobalComponents {
        [key: string]: DefineComponent<ChartProps, {}, {}>
    }
}

This section aggressively defines all global components as having ChartProps. Not sure why they did this. A short-term fix would be to use pnpm patch or patch-package to remove these lines.

from highcharts-vue.

jszuminski avatar jszuminski commented on June 26, 2024 1

I'm reopening this issue for now as I need to publish it to npm with v2.1.0 :)

from highcharts-vue.

jszuminski avatar jszuminski commented on June 26, 2024 1

I've authenticated the npm publish now and it should be there in the registry so feel free to use it and report any issues that you encounter or potential features/enhancements.
Screenshot 2024-03-15 at 11 28 45

from highcharts-vue.

b-maslennikov avatar b-maslennikov commented on June 26, 2024 1

perfect. thanks mate

from highcharts-vue.

b-maslennikov avatar b-maslennikov commented on June 26, 2024

image
one more custom component

from highcharts-vue.

jszuminski avatar jszuminski commented on June 26, 2024

Thanks for reporting! You're absolutely right. I've prepared a simple fix, could you please check if this works as expected?

[package.json]
"dependencies": {
    "highcharts": "10.3.3",
    "highcharts-vue": "https://github.com/highcharts/highcharts-vue.git#bug/259-global-types-problem"
  },

If yes, I will merge it and release v2.1.0.

from highcharts-vue.

matthew-dean avatar matthew-dean commented on June 26, 2024

@jszuminski PNPM only works with this NPM format:

"highcharts-vue": "github:highcharts/highcharts-vue.git#bug/259-global-types-problem"

(See: https://docs.npmjs.com/cli/v10/configuring-npm/package-json#repository and this issue)

That said, it seems to work. Thanks!

from highcharts-vue.

b-maslennikov avatar b-maslennikov commented on June 26, 2024

checked PNPM fix - works perfect to me
thanks

from highcharts-vue.

jszuminski avatar jszuminski commented on June 26, 2024

Published v2.0.1 on npm, this should no longer be a problem. Please feel free to report any more issues in case you find any, I will try to solve them asap.

from highcharts-vue.

b-maslennikov avatar b-maslennikov commented on June 26, 2024

hmm. latest version on npm is still 2.0.0

from highcharts-vue.

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.