Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Vue 3 support

Answered
Carlos Perez Ruiz asked on February 19, 2021

Hi, 
We have an application in vue 3, and the instance of flexmonster in this application fail. (Error in attachments section)
The question is, flexmonster have compatibility with vue 3? 
If your answer is not, then the question would be: do you plan to support it in this year (2021)? and, in which version do you estimate to release it?
Thanks for your answers.
Regards.

4 answers

Public
Vera Didenko Vera Didenko Flexmonster February 22, 2021

Hello, Carlos,
 
Thank you for reaching out to us. 
 
We would like to explain that the vue-flexmonster npm module is not compatible with Vue 3 at the moment.
However, Flexmonster can be used in a Vue 3 project.
Our team has prepared a sample of how Flexmonster can be integrated into a Vue 3 project (please see "vue3-flexmonster.zip" in the attachments below).
After unpacking the project, please run the following commands to start the application: 

npm i

npm start

The project will be available at http://localhost:8080/.

Also, we have prepared the necessary steps on how to integrate Flexmonster into an existing Vue 3 project below for guidance: 

  1. Download Pivot.vue from GitHub and place it in your project (for example, in src/components).
  2. Uninstall vue-flexmonster:
    npm uninstall vue-flexmonster
  3. Install flexmonster:
    npm install flexmonster
  4. Import  Flexmonster styles in main.js:
    // main.js

    import { createApp } from 'vue'
    import App from './App.vue'

    import 'flexmonster/flexmonster.css'

    createApp(App).mount('#app')
  5. Now Flexmonster can be used throughout your application, for example, in App.vue:
    // App.vue

    <template>
    <Pivot
    toolbar
    v-bind:report="'https://cdn.flexmonster.com/reports/report.json'"
    _v-bind:licenseKey="'XXXX-XXXX-XXXX-XXXX-XXXX'">
    </Pivot>
    </template>

    <script>
    import Pivot from "./components/Pivot"

    export default {
    name: 'App',
    components: {
    Pivot
    }
    }
    </script>

    <style>...</style>

 
 
In addition, we have added a task to our customers’ wishlist for making vue-flexmonster compatible with Vue 3 this year (2021).
We will notify you in case of any updates.
 
Please let us know if this helps and if the sample project works fine for you.
Looking forward to your response.
 
Kind regards,
Vera

Attachments:
vue3-flexmonster.zip

Public
Vera Didenko Vera Didenko Flexmonster 7 days ago

Hello, Carlos,
 
Hope you are doing well.
 
Our team is wondering whether our response helped you.
Did the sample project help to integrate Flexmonster in your Vue 3 project?
 
We would be glad to hear if everything works.
Looking forward to your feedback.
 
Kind regards,
Vera

Public
Carlos Perez Ruiz 6 days ago

Hi Vera, how are you?
Thanks for your anwser. 
Yes, your example project and instructions was a helpful.
We were able to do the integration with vueJs v3 and flexmonster with success.
 
Thanks for the support.
Regards.
 

Public
Vera Didenko Vera Didenko Flexmonster 5 days ago

Hello, Carlos,
 
Thank you for your feedback. 
 
We are happy to hear that everything works.
Should any further questions arise, please feel free to reach out. 
 
Have a nice day!
 
Kind regards,
Vera

Please login or Register to Submit Answer