- This topic has 1 reply, 2 voices, and was last updated 4 years ago by support-swapna.
-
AuthorPosts
-
knowledgeplacesParticipantI have recently added the following packages to my Angular 10 project:
@auth0/angular-jwt
ngx-cookie-serviceWhen 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 targetHowever, 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 undefinedDo 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.
support-swapnaModeratorHi,
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 -
AuthorPosts