jbkunst / highcharter

R wrapper for highcharts
http://jkunst.com/highcharter/
Other
718 stars 147 forks source link

404: failed to load resources when running Highcharts in Shiny #729

Closed nuno-agostinho closed 1 year ago

nuno-agostinho commented 2 years ago

Hey @jbkunst! How are you doing? :)

Just wanted to ask if there is something I can do about Highcharts scripts that are not found with a status code 404. Take the following example:

# Load packages
library(shiny)
library(shinythemes)
library(highcharter)

ui <- fluidPage(
    theme = shinytheme("paper"),
    fluidRow(
        column(width = 6, highchartOutput("chart1")),
        column(width = 6, highchartOutput("chart2")),
    )
)

server <- function(input, output) {
    output$chart1 <- renderHighchart({
        highcharts_demo()
    })

    output$chart2 <- renderHighchart({
        hchart(iris, "scatter", hcaes(Sepal.Length, Sepal.Width, group = Species))
    })
}

runApp(shinyApp(ui, server), launch.browser = TRUE)

When running Highcharter via Shiny in Safari or Chrome, multiple errors/warnings are raised in the console regarding Highcharts scripts that cannot be locally found (below). Do you have any idea on how to avoid this?

Thanks!

DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/highcharts.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/highcharts-3d.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/highcharts-more.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/stock.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/map.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/annotations.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/data.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/drilldown.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/item-series.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/offline-exporting.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/overlapping-datalabels.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/exporting.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/export-data.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/funnel.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/heatmap.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/treemap.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/sankey.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/dependency-wheel.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/organization.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/solid-gauge.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/streamgraph.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/sunburst.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/vector.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/wordcloud.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/xrange.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/tilemap.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/venn.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/gantt.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/timeline.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/parallel-coordinates.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/bullet.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/coloraxis.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/dumbbell.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/lollipop.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/series-label.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:5763/highcharts-8.1.2/modules/boost.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Feel free to reopen it if you find it necessary.