daattali / timevis

📅 Create interactive timeline visualizations in R
http://daattali.com/shiny/timevis-demo/
Other
653 stars 157 forks source link

TypeError: vis.Timeline is not a constructor #33

Closed shosaco closed 7 years ago

shosaco commented 7 years ago

When running a simple example, I get the error in the javascript console "TypeError: vis.Timeline is not a constructor[Learn More]" and the output doesn't show up.

The example is a module in a bigger app. This happens only on my Linux machine, not on my windows.

library(timevis)
ui <- function(id){
  ns <- NS(id)
  fluidPage(h3("Timeline:"),
            timevisOutput(ns("timeline")))
}

server <- function(input, output, session) {
    output$timeline <- renderTimevis(
      timevis()
    )
}

shinyApp(ui, server)

R version 3.3.2 (2016-10-31) Platform: x86_64-redhat-linux-gnu (64-bit) Running under: CentOS Linux 7 (Core)

daattali commented 7 years ago

Do the examples at http://visjs.org/timeline_examples.html work for you? Have you tried or do you have access to a non-centos linux?


Dean Attali President & CEO AttaliTech Ltd http://AttaliTech.com http://attalitech.com

On 4 July 2017 at 13:40, shosaco notifications@github.com wrote:

When running a simple example, I get the error in the javascript console "TypeError: vis.Timeline is not a constructor[Learn More]" and the output doesn't show up.

The example is a module in a bigger app. This happens only on my Linux machine, not on my windows.

library(timevis) ui <- function(id){ ns <- NS(id) fluidPage(h3("Timeline:"), timevisOutput(ns("timeline"))) }

server <- function(input, output, session) { output$timeline <- renderTimevis( timevis() ) }

shinyApp(ui, server)

R version 3.3.2 (2016-10-31) Platform: x86_64-redhat-linux-gnu (64-bit) Running under: CentOS Linux 7 (Core)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/daattali/timevis/issues/33, or mute the thread https://github.com/notifications/unsubscribe-auth/AA6IFCP7x4P_GkkeqxOmSf7uMEt_8i45ks5sKiSogaJpZM4ONPpf .

shosaco commented 7 years ago

The CentOS machine is my host for the shiny app, a remote machine used for my webserver, so I basically cannot "navigate" to visjs.org to try it. If there is anything that I can try to find the root cause of this problem, please let me know. And thanks for the great package!

daattali commented 7 years ago

Ah ok I'll try to see how I can debug that, might be difficult and I'm also away right now (at useR conference and then traveling) so might be a while


Dean Attali President & CEO AttaliTech Ltd http://AttaliTech.com http://attalitech.com

On 4 July 2017 at 22:20, shosaco notifications@github.com wrote:

The CentOS machine is my host for the shiny app, a remote machine used for my webserver, so I basically cannot "navigate" to visjs.org to try it. If there is anything that I can try to find the root cause of this problem, please let me know. And thanks for the great package!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/daattali/timevis/issues/33#issuecomment-312947820, or mute the thread https://github.com/notifications/unsubscribe-auth/AA6IFLV6zIpTk-1bcfj6vKZAACDJJID_ks5sKp6VgaJpZM4ONPpf .

daattali commented 7 years ago

Actually, if you know how to enable X11 forwarding, you could test it out on the centos machine (and if you don't know how, it's worth it to learn, it will be an extremely useful skill forever)


Dean Attali President & CEO AttaliTech Ltd http://AttaliTech.com http://attalitech.com

On 4 July 2017 at 22:23, Dean Attali daattali@gmail.com wrote:

Ah ok I'll try to see how I can debug that, might be difficult and I'm also away right now (at useR conference and then traveling) so might be a while


Dean Attali President & CEO AttaliTech Ltd http://AttaliTech.com http://attalitech.com

On 4 July 2017 at 22:20, shosaco notifications@github.com wrote:

The CentOS machine is my host for the shiny app, a remote machine used for my webserver, so I basically cannot "navigate" to visjs.org to try it. If there is anything that I can try to find the root cause of this problem, please let me know. And thanks for the great package!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/daattali/timevis/issues/33#issuecomment-312947820, or mute the thread https://github.com/notifications/unsubscribe-auth/AA6IFLV6zIpTk-1bcfj6vKZAACDJJID_ks5sKp6VgaJpZM4ONPpf .

shosaco commented 7 years ago

I just fixed it, this issue was related to issue #11 and #12, I had visNetwork V1.0.1 running, whereas the bug was fixed there with V1.0.2. Upgraded now and timevis is working fine.

Thank you very much! If your travels lead you to Munich, let me know!

daattali commented 7 years ago

Ah good so I didn't do anything bad :) I'm definitely going to spend some time in Germany this month, but probably Berlin, not Munich, but thank you :)


Dean Attali President & CEO AttaliTech Ltd http://AttaliTech.com http://attalitech.com

On 5 July 2017 at 15:09, shosaco notifications@github.com wrote:

Closed #33 https://github.com/daattali/timevis/issues/33.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/daattali/timevis/issues/33#event-1150873964, or mute the thread https://github.com/notifications/unsubscribe-auth/AA6IFJpSDhjQY6r6j15QLB-4wh37axhWks5sK4sNgaJpZM4ONPpf .