You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
finally I got it working with NUXT but theres a problem if I reload the page OR I access the subpage with the chart directly. Then the whole application crashes and I get error 'define is not defined'.
I run nuxt in universal mode:
plugins/vue-morris.js
import Raphael from 'raphael/raphael'
import jQuery from 'jquery'
// This is needed by Morris
global.Raphael = Raphael
global.jQuery = jQuery
Thank your for your reply. I followed your tutorial from the beginning (it was the only article about nuxtjs and morrisjs in the internet ;) ) and the error came up.
Hello,
finally I got it working with NUXT but theres a problem if I reload the page OR I access the subpage with the chart directly. Then the whole application crashes and I get error 'define is not defined'.
I run nuxt in universal mode:
plugins/vue-morris.js
nuxt-config.js
chartSection.vue
I already found these links, but could not get it work
https://nuxtjs.org/guide/plugins#only-for-browsers
https://nuxtjs.org/faq/window-document-undefined/
https://github.com/nuxt/nuxt.js/issues/30
Thank you for your help!
The text was updated successfully, but these errors were encountered: