alexcode / vue2vis

A Vuejs 2 adapter for Visjs
MIT License
217 stars 59 forks source link

Dependency not found #55

Closed bjschwarz closed 4 years ago

bjschwarz commented 4 years ago

Upon updating to 0.0.17 (the release from 2 days ago) I can no longer import the vue2vis library.

I get this:

This dependency was not found:

vue2vis in ./src/main.js

To install it, you can run: npm install --save vue2vis

I think the way to use the component changed to:

Vue.component('timeline', vue2vis.Timeline);

when before I was including the components like this:

import { Timeline, DataSet } from 'vue2vis';

@alexcode could you explain if the include process has changed with the updates?

bjschwarz commented 4 years ago

It appears that the /dist files are not being built properly. They don't exist at least with yarn.

vue2vis.css - exists

vue2vis.js - not found vue2vis.min.js - not found vue2vis.min.js.map - not found

alexcode commented 4 years ago

@bjschwarz, this is due to the change in bundling tool used, the entry in the package.json must be changed. I'm fixing this but unfortunately I will need to publish a new version. Thanks for the report.