ebailey78 / shinyBS

Twitter Bootstrap Components for Shiny
182 stars 47 forks source link

Uncaught referenceErrorL ShinyBS is not defined at ..... #135

Open michaelgaunt404 opened 3 years ago

michaelgaunt404 commented 3 years ago

Hello, I was unable to see my popup and tip elements in my shiny application when I put it on RStudio.

I dug around in the logs but nothing came up, I then dug around in the inspect->console and found a number of errors:

image

It was strange to get this error as I was able to successfully put a smaller toy application that used shinyBS on RStudio with no problem.

marshallpayne415 commented 3 years ago

@michaelgaunt404 I'm having the same issue. When I run my shiny app locally, the shinyBS popups work just fine. However when I run it through RStudio Server, the popups don't render. When I right-click > Inspect a text label (the area where hovering over should initiate the pop-up) in the Elements panel of the Inspect tool, I see the text from the pop-up, but the pop-up itself never appears/renders.

grwhumphries commented 2 years ago

Ditto here - seems that it's looking for localhost/sbs/shiny.js and /sbs/shiny.css and it's not finding them. Any progress on this?

grwhumphries commented 2 years ago

I've come up with a workaround for this - If you grab the shinyBS.js and shinyBS.css files from this repository and copy them into a folder on your shiny root directory called "sbs" so you end up with: Localhost/sbs/shiny.js (or shiny.css), that worked for me @michaelgaunt404 @marshallpayne415

LogFlames commented 1 year ago

I got similar errors running my shiny app in a docker container. My was caused due to me not loading

library(shinyBS)

and instead using

shinyBS::tipify(...)

When I added the library-call, the shinyBS is not defined disappeared.