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

Vue 2 flash message not working after production build #31

Open
vinodsnayvik opened this issue Nov 30, 2022 · 2 comments
Open

Vue 2 flash message not working after production build #31

vinodsnayvik opened this issue Nov 30, 2022 · 2 comments

Comments

@vinodsnayvik
Copy link

I have created an application in vue 2. I used this package for showing flash messages in the application. Without build it is working fine but after build when i run it then this is saying

 Cannot read properties of undefined (reading 'success')

I am using it like this :

this.flashMessage.success({ message: 'Settings have been updated.' });

and here is my main.js file

import Vue from 'vue'
import App from './App.vue'

import FlashMessage from "@smartweb/vue-flash-message";
Vue.use(FlashMessage);

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')

@smwbtech
Copy link
Owner

Hi @vinodsnayvik! Thank you for your report.

I Install version v0.6.10 of this package and vue ^2.6.11. I builded an app, but i can't reproduce your problem. Maybe you can provide more information?

Ran builded app locally in browser

@seriy825
Copy link

seriy825 commented Jan 4, 2023

Hi @smwbtech ! Did you check this at production build? I have the same problem with same version and vue ^ 2.7.10. Building by vite. Can you give to us your app.js conent with this package?

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

3 participants