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

Next Branch Vue.use is not a function #61

Open
ghost opened this issue May 24, 2021 · 7 comments
Open

Next Branch Vue.use is not a function #61

ghost opened this issue May 24, 2021 · 7 comments

Comments

@ghost
Copy link

ghost commented May 24, 2021

I started a feature branch in my app using this package a while back before you updated it to support demi and vue 3.

I followed the directions by updating to the next branch, installing demi and the composition api package.

It installed fine and when a built it, no issues.

But when hitting a page with a smart table I get the following in my chrome inspector:

Uncaught TypeError: __webpack_provided_window_dot_Vue.use is not a function
    at Module../node_modules/@vue/composition-api/dist/vue-composition-api.esm.js (app.js:1902)
    at __webpack_require__ (manifest.js:23)
    at Module../node_modules/vuejs-smart-table/node_modules/vue-demi/lib/index.esm.js (app.js:101631)
    at __webpack_require__ (manifest.js:23)
    at Module../node_modules/vuejs-smart-table/dist/vuejs-smart-table.es.js (app.js:101563)
    at __webpack_require__ (manifest.js:23)
    at Module../resources/js/vuejs.js (app.js:28449)
    at __webpack_require__ (manifest.js:23)
    at Object../resources/js/app.js (app.js:20289)
    at __webpack_require__ (manifest.js:23)

Using this in Laravel 8 with Laravel-Mix 6 and Webpack 5.

Thanks

@tochoromero
Copy link
Owner

tochoromero commented May 27, 2021

installing demi and the composition api package

Hello, you don't need to install demi since that is a dependency of the package already, and you don't need to install the composition api package unless you are using Vue 2.

@ghost
Copy link
Author

ghost commented May 27, 2021

I am using Vue 2, that's the point here.

Installing demi would simply dupe it, it shouldn't cause an issue, certainly not the one I reported.

@tochoromero
Copy link
Owner

Yesterday I fixed some bugs I had with regards to Vue 2.
I just tested on a fresh Vue 2 CLI installation and it worked as expected.

Would you please update to the latest version and try again.

@tochoromero
Copy link
Owner

@19peaches where you able to make it work?

@ghost
Copy link
Author

ghost commented Jun 3, 2021

No. This is used in a live site I had to revert to 0.8 or whatever the previous was. I don't have time to fiddle around with Vue 3 nonsense.

@ghost
Copy link
Author

ghost commented Jun 4, 2021

I no longer see the releases/tags for anything greater than 0.0.7

Have you removed them?

@tochoromero
Copy link
Owner

No, I still see version 0.0.8 as latest.

Screen Shot 2021-06-22 at 5 30 25 AM

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

1 participant