Questions tagged [angular-devkit]

61 questions
1
vote
1 answer

Error when importing mathjs in Angular 9 CLI webworker

I am currently trying add a webworker to my Angular 9 project using Angular CLI 9.1.7. This webworker should run some calculations using mathjs 7. However, importing mathjs into the webworker always results in the following error in the browser…
dominikks
  • 21
  • 3
1
vote
0 answers

Angular 9 with Tailwind CSS, PostCSS, SCSS and MiniCssExtractPlugin not compiling

I have been trying to use Tailwind CSS in my Angular 9 project. I am able to get it to work fine if I follow this guide: https://dev.to/seankerwin/angular-8-tailwind-css-guide-3m45 The problem arises when I try to use MiniCssExtractPlugin to…
1
vote
0 answers

Angular v9 ng serve with specific i18n locale configuration show default locale language

When try to serve my angular v9 app with different locale configuration, Default language shown all the time, while ng build --localize is working as expect. node --max_old_space_size=4096 ./node_modules/.bin/ng serve -c=dev,sv…
1
vote
1 answer

How can I make “ng serve” wait for “ng build” to finish using a ng library?

The problem in doing so, is that ng serve starts reloading as soon as ng build starts recompiling, so after each file change it refreshes the browser ~3 times and often doesn't show the new changes in the browser window until a 4th (manual) refresh.
1
vote
1 answer

Nx custom schematic in repository not able to load

I setup a repo for a custom Nx builder and schematics to build an application / init. Initially I developed it in the tools/schematics folder and everything was working, but decided it should live in its own repo. I made sure to add the schematics…
codephobia
  • 1,580
  • 2
  • 17
  • 42
1
vote
1 answer

how to create and use a new Build configuration in Angular CLI?

In my Angular.json file. I have "configurations": { "production": { "fileReplacements": [ { "replace": "src/environments/environment.ts", "with":…
dota2pro
  • 7,220
  • 7
  • 44
  • 79
1
vote
1 answer

Angular workspace library - debugging Error: Could not resolve entry build error

I have a workspace library that is giving me an error I have no idea how to debug. BUILD ERROR Could not resolve entry (C:_dev\my-app\presentation\angular-workspace\dist\my-app-ui\esm2015\my-app-ui.js) Error: Could not resolve entry …
jenson-button-event
  • 18,101
  • 11
  • 89
  • 155
0
votes
0 answers

polyfills.js:1 [webpack-dev-server] Server started: Hot Module Replacement disabled, Live Reloading enabled, Progress disabled, Overlay enabled

If i edit something in the webpage at that time angular application goes into infinite page load process for some mini, can any one help me with this issue. I was updating my angular project from 15 to 16 at that time i got this error while new…
0
votes
0 answers

How can I use only one node server for Angular SSR in NX Angular

I have an NX Angular monorepo with almost 40 applications. I want to use Angular SSR for the apps, but based on the standard implementation, this means I would have to run and maintain 40 node servers on the server - one for each app. Is it good…
0
votes
1 answer

NX Cannot find module '@angular-devkit/core'

After upgrading the NX version of my Angular app from 15.6.3 to 15.9.2. Initially I got some failures which I solved by getting rid of angular.json and makings some changes to my libs' project.json to make it work, however, it now fails with: NX …
Francesco Borzi
  • 56,083
  • 47
  • 179
  • 252
0
votes
1 answer

Angular 15.1 - Infinite Loop on Change Detection when removing babel-polyfill

We had a an old babel-polyfill in our project. Now, when we remove it, Angular DevTools shows an infinite Change Detetction Loop with Source "Window.addEventListener:message". Anyone has an idea, whats wrong ?
0
votes
1 answer

Asp.net core and multiple angular apps

I'm trying to create an application with several spa applications. Project uses asp.net core 6, angular 14. I can run the project in development mode. But when I open the project in a browser (https://localhost:44313/clientapp) I get an error:…
al.koval
  • 2,087
  • 4
  • 28
  • 35
0
votes
1 answer

angular/compiler-cli peer dependencies

I've tried a lot to fix this problem, but I can't find any solution. This is the error: npm ERR! While resolving: @angular-devkit/build-angular@14.2.4 npm ERR! Found: @angular/compiler-cli@12.2.16 npm ERR! node_modules/@angular/compiler-cli npm ERR!…
user19383419
0
votes
1 answer

Unable to navigate inside a Tree in angular devkit schematics

I want to create a CLI based on schematics to improve projects creation for my job and I want to scaffold an Angular Application AND an Angular Library in one command. So I tried to use externalSchematic and it works perfectly for the application…
0
votes
1 answer

Preloading strategy slow down when using with Angular universal app (SSR)

I am using lazy loading for modules. But when the user navigates to the lazy loaded module route, it takes a couple of seconds to load the module. So I use a custom preloading strategy with 20 second time delay. When I serve the application using…