Questions tagged [ng]

17 questions
2
votes
1 answer

Angular. ng serve. Module build failed. Cannot read properties of undefined (reading 'file')

I have the following error when running "ng serve": ./node_modules/@angular/common/fesm2022/common.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/tools/babel/webpack-loader.js): TypeError:…
Ser
  • 37
  • 6
0
votes
0 answers

Can't bind to 'step' since it isn't a known property of 'nouislider'

I keep getting this error when I do ng serve that it Can't bind to 'ngModel' since it isn't a known property of 'nouislider' Can't bind to 'tooltips' since it isn't a known property of 'nouislider'. : Can't bind to 'step' since it isn't a known…
user022yufjb
  • 157
  • 1
  • 3
  • 11
0
votes
0 answers

ng serve error: You seem to not be depending on "@angular/core"

I keep getting the error You seem to not be depending on "@angular/core" I have tried everything on the stackoverflow it says from using npm install, npm link to everything. Does anyone know how to solve the error? try installing @angular/core but…
user022yufjb
  • 157
  • 1
  • 3
  • 11
0
votes
1 answer

Angular json mapping ngInit

I need mapping my json in Angular. I tried many codes and my own also but nothing works and I dont know why. { "Id":1 "Name" : "nba" "League":{ "Id": 329 "Title": "nba"} "Teams": { "home": { "id":1 "Name": atlanta .... }....etc. It is example…
0
votes
0 answers

ng 16 app failes with "Error: `.mjs` files *must* set `isModule` to `true`.", Has anyone gone through this error?

I'm trying to load my angular 16 app as webcomponent into my host app with module federation. Specified all of envirinment setting in below section. With all those, when I launch app with "ng serve", it fails with following error. enter image…
Riyaz
  • 1
0
votes
1 answer

How can I overcome ng not found

I have used "npm install -g @angular/cli" to install the angular cli even though I have used the -g it is not installed globally and shows ng not found error constantly I have uninstalled and installed the angular cli many times even I have cleared…
0
votes
1 answer

Bash SyntaxError in node module (Angular clone)

I have cloned an Angular project and got the following error message "C:\Program Files\nodejs\npm.cmd" run start > clone-side@0.0.0 start > node --max_old_space_size=4096 ./node_modules/.bin/ng…
Hyoto1507
  • 1
  • 2
0
votes
0 answers

error whiile adding fire base into ng app

i am installing firebase into my ng app but encountering this issue when i add in imports array as shown in the documentation enter image description here Type 'ModuleWithProviders' is not assignable to type 'any[] | Type |…
sree K
  • 1
  • 1
0
votes
0 answers

ng command not working as expected in cmd

Whenever I enter an ng command prompt like "ng new " it redirects me to the ng.js file in the visual studio code and after I close it up and return back to the cmd, all i see is this: I was expecting it to create and deploy me a new angular project…
0
votes
1 answer

Angular translate service doesn't works on separated routes

I'm developing an application with Angular, and my project supports multiple languages. I separated the admin routes from the app.module.ts file and created them in a different file. However, due to this separation, the translate service is not…
Fatih EGE
  • 15
  • 3
0
votes
0 answers

ng lint : fails with Cannot find "lint" target for the specified project

My angular version is 13.x when i try to lint the files using ng lint i m getting the following results Cannot find "lint" target for the specified project. You should add a package that implements linting capabilities. For example: ng add…
shamon shamsudeen
  • 5,466
  • 17
  • 64
  • 129
0
votes
1 answer

Generate a production build for angular without including any dependencies in the bundle

I am creating a new angular application and want to be able to load all project dependencies such as angular libraries, rxjs, moment-js, etc externally from a common location (CDN) in the production build. Is there a way to configure angular project…
Prasanth
  • 1
  • 3
0
votes
0 answers

Angular Eslint not working - just high disc usage without any output

Every time I try to run eslint via commandline ng lint nothing happens. The commandline freezes and my disc usage jumps up as far as even possible. Sometimes reading up to 1000MB/sec. It worked a few weeks ago and I do not really know what changed.…
J-Eibe
  • 152
  • 4
  • 12
0
votes
0 answers

Index html generation failed. ENOENT: no such file or directory, open 'D:\

ng build --prod --base-href /appname/ Option "--prod" is deprecated: No need to use this option as this builder defaults to configuration "production". ✔ Browser application bundle generation complete. ✔ Copying assets complete. ✖ *Index html…
0
votes
0 answers

Browser application bundle generation complete. Copying assets complete. Index html generation failed. ENOENT: no such file or directory, open 'D:\

To solve this issue, you need to delete the .cache folder from node_modules. This error occurs when running: ng build --prod --base-href /CitrinoV4/ ✔ Browser application bundle generation complete. ✔ Copying assets complete. ✖ Index html generation…
1
2