Jump to content
We've recently updated our Privacy Statement, available here ×
  • Uncaught Reference Errors after optimization / minify process using nodejs


    ghudson_1
    • Features: Web Services Version: v7.8 Product: Visualize.js

    Issue Description

    After customizing javascript files you can re-run steps to optimize the files for the sake of performance as described here:

    https://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v790/customizing-javascript-files

    A customer who uses visualize.js performed the steps above but then encountered an error in the browser console: Uncaught Reference Errors It was complaining about an error within visualize.js

    Resolution

    If you embed via visualize.js there is an additional step to perform between steps #9 and #10 in the documentation above.

    From the "Working" directory, run a command specific to visualize, passing in your own "js-optimization-output" directory in the "out" arg:

    nodejsnode r.js -o js-sourcesscriptsvisualizebuild.js optimize=uglify2 out=c:Usersghudsontestjs-optimization-outputvisualizevisualize.js

    This applies to JasperReports Server versions 7.5, 7.8, 7.9

    Ref. Case 01935688


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...