facebook

angular comple and build problem

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #668635 Reply

    knowledgeplaces
    Participant

    I have recently added the following packages to my Angular 10 project:
    @auth0/angular-jwt
    ngx-cookie-service

    When I installed the first one, I had a “severe” security warning, which invited me to to an audit on my npm install.

    So I did it.

    Since then, when I build my project with “ng serve –open”, I have a message:
    [angular-ide] Unable to change tsc target

    However, the build runs find and I can test the app.

    But I have two problems.

    First, when there is an error in my code, for instance if I rename a method and this method is used in other Angular services or components, I am no longer warned of it in MyEclipse.

    Before, I had a red marker before each file which was invalid, which was very useful since I did not have to wait for the end of the build to fix these errors.

    Second problem, and this one is really frustrating, I cannot longer build localized versions of my app using the command:
    MSYS_NO_PATHCONV=1 node_modules/.bin/ng build –prod –baseHref=”/console”

    I get the following error:
    Localized bundle generation failed: Cannot read property ‘cooked’ of undefined

    Do you know how to fix this?
    Maybe I could solve these issues by going back to my old configuration, i.e. running with another tsc target, but I don’t know how to proceed.

    #668670 Reply

    support-swapna
    Moderator

    Hi,

    Sorry that you are seeing this issue.
    I tried with Angular 10.2 project and didnt see any security warnings when adding @auth0/angular-jwt to it. Looks like your app is missing some config w.r.t the localization.

    Please check these threads which discuss similar issues :
    https://github.com/angular/angular/issues/38686
    https://blog.ninja-squad.com/2019/12/10/angular-localize/

    Hope this helps.

    –Swapna
    Genuitec Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: angular comple and build problem

You must be logged in to post in the forum log in