229 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
83
views
Image is not found in Angular application
I got an image in my angular app.
I'll try to embed it as an image:
<img src="assets/images/flag.png" alt="Flag of Germany" />
At the browser it is not shown and I get the ...
0
votes
0
answers
120
views
Getting an Error in Angular: Cannot find namespace 'DataTables '
I pulled an Angular 11 project
and after installing the node modules, getting error during npx ng build:
Error: node_modules/angular-datatables/src/angular-datatables.directive.d.ts:31:25 - error ...
0
votes
1
answer
169
views
Can Angular output hashing use a query string parameter instead of renaming files?
The "--outputHashing=all" option changes the name of my files to bust the cache. This is not a great option for me. Can I get this feature to append a query string parameter (like "?v=...
0
votes
1
answer
349
views
Ng build angular cli and angular compatibility issues
When I run ng build I get this error
This version of CLI is only compatible with Angular versions ^13.0.0 || ^13.3.0-rc.0,
but Angular version 18.2.10 was found instead.
These are my current versions
...
3
votes
1
answer
882
views
Issue with ng build --watch and npm link in Angular 18
I’m working on an Angular project that uses an Angular library. I recently upgraded both from version 17 to 18. In version 17, I was using ng build --watch along with npm link to enable hot reload for ...
1
vote
1
answer
278
views
npm i command throws warning how to fix it
This is the warnings I am getting for npm i command. Node modules directory is creating. When I do ng build it's throwing errors showing all the modules as shown in second image. What will be the ...
0
votes
0
answers
171
views
Angular 17 | ng build --configuration production converting special characters to unicode
We successfully upgraded our Angular application from version 11 to version 17, tested the functionality, and took a dev build. However, we are currently using the command ng build --configuration ...
0
votes
5
answers
2k
views
ng build takes forever and never finishes building
I'm new to Angular, and I am neither an expert on NodeJS nor Webpack. I built an app with Angular but when I try to deploy it, ng build doesn't seem to be working. The terminal says Building ... and ...
0
votes
1
answer
624
views
Angular fileReplacements does not work with assets after upgrading
After upgrading angular, fileReplacements is not working anymore with assets, here is my code :
"fileReplacements": [
{
"replace": "src/assets/scss/x.scss&...
6
votes
3
answers
11k
views
Problem while ng build using the new angular 17 application builder
ng serve is working fine, but ng build is giving this error.
X [ERROR] Could not resolve "path"
(disabled):node_modules/jsdom/lib/api.js:3:21:
3 │ const path = require("path");
...
1
vote
2
answers
2k
views
ng build - Browserslist: caniuse-lite is outdated. Please run the following command: `npx browserslist --update-db`
I'm trying to deploy an angular aplication, when I run ng build --prod or ng build, I see the error
"Browserslist: caniuse-lite is outdated. Please run the following command: npx browserslist --...
0
votes
1
answer
628
views
ng build issue: Error: Unknown argument: base-href/
Issue Image
The above error is what i have issued when i was trying to build the angular project for external hosting, using the ng build command, anyone faced this issue ?
Tying to run the ng build ...
0
votes
1
answer
523
views
Angular changes not reflected on server live code
My changes above in screenshot. Just changed the text to Download PDF before it was something else.
Replaced the folder here with the complied code
Used this command to compile: ng build --base-href=/...
0
votes
0
answers
72
views
I'm trying to host an Angular project on GitHub
I'm trying to host an Angular project on GitHub. I have a project called website.github.io, I made a gh-pages branch, then a dist file where only a part of my page is uploaded, and when I generate the ...
0
votes
0
answers
695
views
@smithy/types build issue in angular
My angular application failed during the time of build. Below is the error that I am getting.
ERROR in node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts:23:6 - error TS1337: An ...