Base solution for your next web application
Open Closed

ng build --prod uglifyjs errors #6365


User avatar
0
amer_op created

hello all , when i use 'ng build' ----> it works fine without errors, and dist folder successfully generated but when i use 'ng build --prod' ----> it fails with the following errors :-

  • ERROR in 1049.ae0c0f596171882abe3e.js from UglifyJs undefined
  • ERROR in scripts.e75fa26f6e8588a20b31.js from UglifyJs undefined

please help !


10 Answer(s)
  • User Avatar
    0
    amer_op created

    any thoughts ?

  • User Avatar
    0
    amer_op created

    any thoughts ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @amer_op,

    Sorry for our late response. Could you share a screenshot of the error including the entire error message ?

    By the way, have you tried to remove "node_modules" folder and try to install npm packages using "yarn" command, and then run "ng build --prod" ?

  • User Avatar
    0
    amer_op created

    hello @ismcagdas, it's ok thank you,

    for the node_modules folder , yes i have deleted it them install npm packages, but still the same error.

    here is the full error ---->

    ng : At line:1 char:1

    • ng build --prod
    •   + CategoryInfo          : NotSpecified: (:String) [], RemoteException
        + FullyQualifiedErrorId : NativeCommandError
      
      

    ERROR in 1049.81cd376bfbeee41bcebb.js from UglifyJs undefined ERROR in scripts.e75fa26f6e8588a20b31.js from UglifyJs undefined

    thank you again.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @amer_op

    It is hard to find the problem like this. Could you send your project to info@aspnetzero via email ? Please delete the node_modules folder before zipping your solution.

    Thanks,

  • User Avatar
    0
    amer_op created

    hi @ismcagdas ok i have sent it with this subject -- > "ui project ( to ismcagdas )" thank you.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @amer_op

    Did you send it to info@aspnetzero ? We haven't received it yet.

    Thanks,

  • User Avatar
    0
    amer_op created

    yes i did , but apparently google blocked my email because i attached a zip file , anyway i have sent it again with a google drive url , thank you

  • User Avatar
    0
    amer_op created

    any thoughts ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Replied via email.