Search the Community

Showing results for tags 'uncaught syntaxerror: expected expression got'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Company Forums
    • Company News
  • Product Forums
    • FusionCharts XT
    • FusionWidgets XT
    • PowerCharts XT
    • FusionMaps XT
    • Collabion Charts for SharePoint
    • jQuery Plugin for FusionCharts
    • AngularJS plugin
    • ReactJS plugin
  • General Forums
    • FusionCharts Jobs and Consultation
    • FusionLounge

Found 1 result

  1. Hello, I wonder if anyone can help. Apologies if this is in the wrong section but there's no Vue.js section. I have a vue.js 2 project that uses Vue-router to switch views, a home view (no charts), a treemap view (FusionCharts treemap) and a column chart view (column3D). Each view is an individual vue.js component. When running the application, the home page displays fine and when changing the route, the very first chart displays perfectly. I can go back to the home page then to that same chart - all good. The problem is when going from the Treemap view to the Column chart view, then I get an error "Uncaught SyntaxError: expected expression, got '<'" . I suspect it is related to this warning - The script from “http://localhost:8080/fusioncharts.charts.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type. Same happens when I view the Column chart first, then move to the Treemap view, the warning in that case is - The script from “http://localhost:8080/fusioncharts.treemap.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type. The code that fails is this: in either the Treemap view or the Column chart view - code is similar but 'type', 'render at' and 'dataSource' parameters are different. What is causing the MIME type error, and how do I get around this issue? Thanks Ron