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

Problem using library with Quasar framework. #11

Closed
coupej opened this issue Mar 12, 2017 · 4 comments
Closed

Problem using library with Quasar framework. #11

coupej opened this issue Mar 12, 2017 · 4 comments

Comments

@coupej
Copy link

coupej commented Mar 12, 2017

When trying to use the Quasar Framework http://quasar-framework.org/ and trying to include the library I get the following error: VueCropper.js?f133:8 Uncaught TypeError: Vue.extend is not a function
schermafbeelding 2017-03-12 om 01 18 39

I used your library before and then "it just worked".

I attached a zip with a standard quasar project and the cropperjs lib included. Once i added the
import VueCropper from 'vue-cropperjs' line in the index.vue file the error happens.

bugSar.zip

Should you want to reproduce I think you would need

npm install -g quasar-cli to install the quasar framework cli
quasar dev to get the project running. offcourse after all the npm dependencies are installed.

@coupej
Copy link
Author

coupej commented Mar 12, 2017

I got it working by including the vue: 'vue/dist/vue.js' alias in the resolve section of my webpack config as described at vuejs-templates/webpack#215. This however means that it will use the "full" vue install instead of the runtime only build.

I would prefer that I could get a compiled version of the plug-in in my build instead.

@Agontuk
Copy link
Owner

Agontuk commented Mar 13, 2017

Thanks for the feedback, I'll look into it.

@Agontuk
Copy link
Owner

Agontuk commented Mar 16, 2017

I've published a new version with the fix, can you check it and let me know if it works for you ? I'll close the issue then.

@coupej
Copy link
Author

coupej commented Mar 18, 2017

It works for me! Thanks for your quick reply.

@Agontuk Agontuk closed this as completed Mar 19, 2017
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