Open Closed

ng build --prod uglifyjs errors #6365


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)
  • 0
    amer_op created

    any thoughts ?

  • 0
    amer_op created

    any thoughts ?

  • 0
    ismcagdas created

    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" ?

  • 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.

  • 0
    ismcagdas created

    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,

  • 0
    amer_op created

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

  • 0
    ismcagdas created

    Hi @amer_op

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

    Thanks,

  • 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

  • 0
    amer_op created

    any thoughts ?

  • 0
    ismcagdas created

    Replied via email.