biigpongsatorn / vue-element-loading

⏳ Loading inside a container or full screen for Vue.js
https://vue-element-loading.netlify.com/
MIT License
321 stars 31 forks source link

npm version 2.0.1 is latest now not working on vue 2 #41

Closed Sitronik closed 3 years ago

Sitronik commented 3 years ago
Uncaught TypeError: Object(...) is not a function
    at Module.fb15 (VueElementLoading.common.js:661)
    at __webpack_require__ (VueElementLoading.common.js:21)
    at eval (VueElementLoading.common.js:85)
    at eval (VueElementLoading.common.js:88)
    at Object.../node_modules/vue-element-loading/dist/VueElementLoading.common.js (vendors~index.chunk.js:3731)
    at __webpack_require__ (index.bundle.js:80)
    at eval (day.vue?../node_modules/babel-loader/lib!../node_modules/vue-loader/lib??vue-loader-options:18)
    at Object.../node_modules/babel-loader/lib/index.js!../node_modules/vue-loader/lib/index.js?!./src/vue/components/dashboard/user/widgets/day.vue?vue&type=script&lang=js& (index.bundle.js:514)
    at __webpack_require__ (index.bundle.js:80)
    at eval (VM1323 day.vue:2)
    at Module../src/vue/components/dashboard/user/widgets/day.vue?vue&type=script&lang=js& (index.bundle.js:4275)
    at __webpack_require__ (index.bundle.js:80)
    at eval (VM1323 day.vue:3)
    at Module../src/vue/components/dashboard/user/widgets/day.vue (index.bundle.js:4263)
    at __webpack_require__ (index.bundle.js:80)
    at Object.eval (dashboard.vue?../node_modules/babel-loader/lib!../node_modules/vue-loader/lib??vue-loader-options:24)

When users update the module in vue 2 projects, they will receive this error since the current version of the module is in the master branch for vue 3. I already said this, but I will repeat the current version of the module in npm, you need to publish with the tag next (npm publish --tag next) Now you need to remove the 2.0.1 module version from npm so that the 1.1.6 module remains working for vue 2.

In the readme, add information to install the module in the vue 3 project, you need to run the command:

npm i vue-element-loading@next

runyasak commented 3 years ago

Hi, @Sitronik

Thank you for informing us. @biigpongsatorn is working on it and it will be worked soon. 😁

biigpongsatorn commented 3 years ago

Hi, @Sitronik
Thank you for your report. I already fixed the issue. You can install with npm i vue-element-loading if you using Vue 2 and install with npm i vue-element-loading@next if you using Vue 3.