Jump to content
We've recently updated our Privacy Statement, available here ×
  • JavaScript files optimization, how to fix the error: ERROR: module path does not exist...Path is relative to:...


    akonkin
    • Features: JasperReports Server Product: JasperReports® Server

    [toc on_off::hide=1]Question:

    I've customized some JavaScript files, after this I tried to optimize JavaScript soruce code according to the documentation. When I executed the command below, I got the error.

    D:Working>nodejsnode r.js -o js-sourcesscriptsbuild.js appDir=js-sourcesscripts baseUrl=.optimize=uglify2 dir=js-optimization-output
    Error: Error: ERROR: module path does not exist:
    D:/Working/js-sources/scripts/.optimize=uglify2/adhoc.start.page.js for module named: adhoc.start.page. Path is relative to: D:/Working
        at D:Workingr.js:25264:35
    

    screenshot with error:

    2016-06-27_0944_1.png.1cb4dde5c289dddb71c8d4e77988439c.png

    What is the reason of this error? How can I fix it?


    Explanation:

    This error was generated because the text of the command was copied from the documentation as is and one space that separates two keys in the command is absent

    2016-06-27_0944_2.png.96d9542c08609519e933261319f083b0.png

    Solution:

    Please separate two keys in the command with the space to fix the problem.

    2016-06-27_0944_3.png.ba21db200c7f4c55f0052cfab27061db.png

    2016-06-27_0944_1.png.b2dd8fe9ad28b1a5ab839c6d9faf92bd.png

    2016-06-27_0944_2.png.7d21d3f6bdf0e1a0b5cdde46e4b1a68f.png

    2016-06-27_0944_3.png.d817a6e0382b82f1dbf124a456170b8f.png


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...