Giter Club home page Giter Club logo

Comments (4)

alukos avatar alukos commented on June 12, 2024

Can't run from /docsrc
yarn dev

[Vue warn]: Unknown custom element: <D3SlopeChart> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <SlopeChartExampleDataUpdate> at src/components/examples/SlopeChartExampleDataUpdate.vue
       <HomeView> at src/views/Home.vue
         <App> at src/App.vue
           <Root>
warn @ vue.runtime.esm.js?2b0e:619
...

from vue-d3-charts.

Saigesp avatar Saigesp commented on June 12, 2024

Sorry, I hadn't updated the npm repository yet. Try installing it again now

from vue-d3-charts.

alukos avatar alukos commented on June 12, 2024

Thank you!
Now docsrc works perfectly

➜  docsrc git:(master) ✗ npm list | grep vue-d3-charts
[email protected] /home/alukos/Projects/sandbox/vue/vue-d3-charts/docsrc
├─┬ [email protected]

But nothing has changed in my nuxt app after reinstalling the module
index.vue:

<template>
  <D3BarChart :config="config" :datum="data"></D3BarChart>
</template>

<script>
import { D3BarChart } from 'vue-d3-charts'

export default {
  components: { D3BarChart },
  ...
npm list | grep vue-d3-charts 
...
├─┬ [email protected]
yarn dev
...
"export 'D3BarChart' was not found in 'vue-d3-charts'  

from vue-d3-charts.

Saigesp avatar Saigesp commented on June 12, 2024

Ok, I've implemented vue-sfc-rollup instead of rollup.js and all seem to be fine now.

Check it out in version 0.2.3

As you said, also define the chart in components:

import { D3BarChart } from 'vue-d3-charts';

export default {
  name: 'LoremIpsumComponent',
  components: {
    D3BarChart,
  },
  // ...
};

from vue-d3-charts.

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.