Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to add kalendar-vue dependency (dependencies were not found) #6

Closed
redoc123 opened this issue Aug 31, 2018 · 5 comments
Closed

Comments

@redoc123
Copy link

Created a new project cal with vue cli 3.0.0

vue create cal
npm install --save kalendar-vue

then in HelloWorld.vue added the following:

import { Kalendar } from 'kalendar-vue';
import 'kalendar-vue/dist/kalendar-vue.css';

It gave me the following error:

ERROR Failed to compile with 2 errors 08:35:51

These dependencies were not found:

  • kalendar-vue in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HelloWorld.vue?vue&type=script&lang=js&
  • kalendar-vue/dist/kalendar-vue.css in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HelloWorld.vue?vue&type=script&lang=js&

To install them, you can run: npm install --save kalendar-vue kalendar-vue/dist/kalendar-vue.css

@altinselimi
Copy link
Owner

You need to change kalendar-vue.css to KalendarVue.css
Updated the naming but forgot to update it on the readme and changelogs.

@redoc123
Copy link
Author

Thanks for quick response..

I already changed it but it still gives me the following error:

 ERROR  Failed to compile with 1 errors                                                                                                                                      13:56:33

This dependency was not found:

* kalendar-vue in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Calendar/index.vue?vue&type=script&lang=js&

To install it, you can run: npm install --save kalendar-vue

@altinselimi
Copy link
Owner

altinselimi commented Aug 31, 2018

@redoc123 can you please run
npm install kalendar-vue@latest -S
It should be working now in the latest version (0.2.2).
This happened because I renamed the main script without building the bundle and then publishing to NPM.

@redoc123
Copy link
Author

thanks a bunch..it works now

@redoc123
Copy link
Author

Also props for putting together such a cool one.
I started working on it. Would like to contribute as my requirements evolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants