zhanziyang / vue-croppa

A simple straightforward customizable mobile-friendly image cropper for Vue 2.0.
https://zhanziyang.github.io/vue-croppa/
ISC License
967 stars 128 forks source link

[Migration] Are there any plan to support Vue3? #235

Open vanoneang opened 4 years ago

vanoneang commented 4 years ago

I am looking forward to continuing to use vue-croppa in Vue3 projects.

birol commented 3 years ago

We are also waiting. Any progress?

tiltec commented 3 years ago

I managed to get it working with the Vue Migration Build.

import CroppaPlugin from 'vue-croppa'
const Croppa = CroppaPlugin.component

Croppa.compatConfig = { MODE: 2 }

The remaining app is configured to Vue3 mode:

// webpack.config.js
module.exports = {
  resolve: {
    alias: {
      vue: '@vue/compat'
    }
  },
  module: {
    rules: [
      {
        test: /\.vue$/,
        loader: 'vue-loader',
        options: {
          compilerOptions: {
            compatConfig: {
              MODE: 3
            }
          }
        }
      }
    ]
  }
}

Some warnings are showing, but it works!

Hibrix-net commented 2 years ago

I managed to get it working with the Vue Migration Build.

import CroppaPlugin from 'vue-croppa'
const Croppa = CroppaPlugin.component

Croppa.compatConfig = { MODE: 2 }

The remaining app is configured to Vue3 mode:

// webpack.config.js
module.exports = {
  resolve: {
    alias: {
      vue: '@vue/compat'
    }
  },
  module: {
    rules: [
      {
        test: /\.vue$/,
        loader: 'vue-loader',
        options: {
          compilerOptions: {
            compatConfig: {
              MODE: 3
            }
          }
        }
      }
    ]
  }
}

Some warning are showing, but it works!

Hello,

Is there any way to make it work on Quasar 2?

Thanks,

milosbarlov commented 2 years ago

Hello, Can we expect a version for Vue3?

twbagustin commented 1 year ago

Hello, Can we expect a version for Vue3?

I was checking the project status, last release was in August 2018, right now has ~90 open issues oldest open issue from around the same year 2018, we are approaching 2024 so roughly 6 years with no updates, yeah I would say this project is dead