spring-boot-admin icon indicating copy to clipboard operation
spring-boot-admin copied to clipboard

How to use vue-rx with spring boot admin and Vue3? Error: "  vue-rx.esm.js:310 Uncaught TypeError: Vue.use is not a function"

Open kormosp opened this issue 1 year ago • 0 comments

Hi, Can you please help in how to import and use vue-rx with spring biit admin ui components? I always run into errors. I am a beginner, the application worked in Vue2 and earlier version of Spring Boot Admin. When I try to add it in index.js, I get the error "Vue.use is not a function"

import VueRx from 'vue-rx';

SBA.use({
  install({viewRegistry,vue}) {
    vue.use(VueRx);      // error comes here
    viewRegistry.addView({
      name:   'instances/custom',
      parent: 'instances',
      path:   'custom',
      component: customEndpoint,
      label: 'GSLA-Cloud Streams',
      group: 'custom',  
      order: 1000,                  
      isEnabled: ({ instance }) => {
        return instance.hasEndpoint("custom");},
    });
  }
});

I tried to import it in the component too, but I did not manage to make it work. Thank you for your help! Peter

kormosp avatar Feb 19 '24 10:02 kormosp