7,458 questions
0
votes
0
answers
174
views
Cannot find module 'typescript' error while running ng build (tsc version 4.2.9 is installed)
I have angular 16, node 18 and typescript 4.2.9 installed on my MacBook. But whenever I do ng build, I get the error An unhandled exception occurred: Cannot find module 'typescript'.
Error Message:
An ...
0
votes
0
answers
11k
views
--openssl-legacy-provider is not allowed in NODE_OPTIONS
On GitHub Actions getting the below error:
Run npm run build
> [email protected] build D:\a\ma-test-app\ma-test-app\app
> SET NODE_OPTIONS=--openssl-legacy-provider && ng build
node: --openssl-...
0
votes
1
answer
6k
views
Workspace extension with invalid name (defaultProject) found on npm audit fix
While trying to run angular app with 'ng serve' command, first I faced
'error: digital envelop routines::unsupported'.
Node.js version 19.8.1
There were suggestion to add flag '--legacy-peer-deps' or ...
1
vote
1
answer
3k
views
Compile time very slow after upgrading from angular 8 to 15
after upgrade whenever i run ng serve or make some changes in the file ,the compile time is 1 minute before it was 5seconds.i used to see something while compiling as it takes something from webpack ...
0
votes
0
answers
522
views
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 ...
5
votes
1
answer
662
views
Angular 15 Can't find my library's code in browser's dev tools
I have an application and a separate library that I use. The library itself functions correctly, but I can't find the library's files in the browsers dev tools, the application's files show up though. ...
0
votes
0
answers
59
views
How add multiimports in a Library using Angular 15 for?
this is my project structure.project structure
testmultiimports-example is a generic test project of my library.
I want to change the import path for a generic import within a specific folder. I try ...
4
votes
1
answer
2k
views
Upgrading Angular Project from Version 11 to 16 - Import Errors in NgModule
I'm currently in the process of updating an existing Angular project from version 11 to version 16. I've successfully managed the transition up to version 15, but I've encountered a challenge upon ...
0
votes
1
answer
278
views
Angular CLI with in workspace not generating things to the right sub folder
I have an Angular CLI project using workspaces and I am having trouble getting the ng g command to put things in the right place.
Here is the basic folder structure:
So I would expect things to go ...
2
votes
1
answer
596
views
Why is my stencil components library failing to generate a symbol that seems to be required when running a build with angular-devkit/build-angular
At Big Give we have a library of web components built using stencil and build-angular.
Last week we were trying to upgrade from stencil v2 to stencil v3, but we started getting errors as shown below ...
0
votes
1
answer
2k
views
Angular Cli does nor working after reinstalling it
I wanted to uprade my Angular Cli by removing it and instaling the new version,
now i cant run ng commands anymore ,there is always this error Message:
ng : File C:\Users\Sirius\AppData\Roaming\npm\ng....
1
vote
1
answer
2k
views
How to set up Angular service workers?
I'm trying to set up Service Workers in my Angular project.
From the CLI inside my project directory I ran this: ng add @angular/pwa --project chatng
It returned "Packages successfully installed&...
0
votes
0
answers
1k
views
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 ...
0
votes
1
answer
547
views
How to generate Angular component without including the "component" word in the name?
As you may know, when executing the following Angular CLI command :
ng g c test
or its long version :
ng generate component test
Angular creates a component containing the following files :
CREATE ...
1
vote
1
answer
734
views
Angular command - ng serve is not working on Visual Studio code
i have created a Angular project .when i try to Run "ng serve" command ,an error showed up.
cannot be loaded because running scripts is disabled on this system.
For more information, see ...
3
votes
1
answer
12k
views
How to fix: { SomeModule } does not appear to be a NgModule Class (-996002)
After I downgraded my angular application from Angular 16 to angular 11.2.14 I got errors with importing my modules into app.component.ts with NgModule. Every module inside imports: [] is giving me ...
0
votes
1
answer
470
views
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 ...
1
vote
0
answers
83
views
Error: Module build failed when serving or building angular project [duplicate]
I just installed the latest @angular/cli, and created a new angular project, but whenever I ran
ng serve or ng build
I'm getting the following error:
✔ Browser application bundle generation complete.
...
0
votes
3
answers
4k
views
How to run ng command when Angular is installed locally?
I have installed Angular locally in my project using npm. However, when I try to run the ng command, it says that the command is not found. I have tried installing Angular globally and it works fine, ...
0
votes
0
answers
45
views
Why does my Angular project on github keeps redirecting?
This angular project I deployed on GitHub pages keep redirecting and I can't figure out why. I can see my angular project for a second and then it gets redirected. Help plz?
https://fodrigoal.github....
0
votes
0
answers
55
views
Global Angular CLI failing to upgrade
Our current global version of angular is 12.2.7 and we are trying to upgrade to the latest global version.
We have run the following the steps :-
npm uninstall -g @angular/cli
npm cache verify
npm ...
1
vote
1
answer
301
views
Angular CLI cache has different results in CI and Local
I have enabled cache in .angular.json:
"cli": {
"cache": {
"enabled": true,
"environment": "all"
}
}
And cache the .angular folder in ...
0
votes
0
answers
656
views
Failed Update Angular 7 to Angular 8
Following the update guide, the process failed in updating Angular Material to version 8 using the proposed command (used also with the --force flag)
cmd /C "set "NG_DISABLE_VERSION_CHECK=1&...
1
vote
1
answer
719
views
I am stuck updating a dependency which is already up to date
I am trying to update Angular from 12 to 16.
I want to use the three.js library and it needs Angular/cli 16 at least to work.
So angular/cli is already up to 16 but angular has been updated to 13 so ...
1
vote
1
answer
2k
views
Azure CLI - Not able to download packages using az artifacts universal download
After downloading the source code from Azure Devops, we run below command to download all the packages.
az artifacts universal download --organization "https://dev.azure.com/TestLtd/" --feed ...