All Questions
Tagged with npm-scripts angular
34 questions
2
votes
2
answers
330
views
Angular `npm start` command failing with missing "target" from proxy.conf.json
I'm trying to use Angular's hot reloading by proxying my API layer to the the API URL. So I'm using a proxy.conf.json file at the root of my project, with the following contents.
{
"/accounts/...
0
votes
1
answer
404
views
How to run a nx script and nodemon script in one-line shell command?
My project is Angular. I have added a script line for running nx and nodemon commands inside of the package.json. The first command runs but the second one does not. If I stop the process and then the ...
3
votes
1
answer
687
views
How to provide variables to an Angular build?
Normally Angular receives its environment settings from environment.[env].ts files when it is built. However, I have a circumstance where I need the ability to override those settings, at build-time, ...
1
vote
1
answer
2k
views
Uncaught TypeError: Cannot set property once of [object Object] which has only a getter
`Uncaught TypeError: Cannot set property once of [object Object] which has only a getter at HTMLDivElement.addEventListener (polyfills.js:1:146664)
Facing this above issue while upgrading angular ...
0
votes
1
answer
2k
views
How format a one line npm script in multiple lines in package.json?
I have the following npm scipt:
ng build core --configuration production && ng build module-one --configuration production && ng build module-two --configuration production && ...
0
votes
0
answers
241
views
ERROR in node_modules/error-stack-parser/error-stack-parser.d.ts(9,5)
I am trying to build an old angular project using the command npm run build, however I am getting this error:
ERROR in node_modules/error-stack-parser/error-stack-parser.d.ts(9,5): error TS1128: ...
3
votes
1
answer
2k
views
install msal-angular not working peer rxjs@"^6.0.0" from @azure/[email protected]
i want to install @azure/msal-angular to work with azure B2C authentication using angular as a front end but when i try to install the package it gives me an error
npm ERR! code ERESOLVE
npm ERR! ...
0
votes
1
answer
132
views
Is possible to run lint while angular is generating Browser application bundle? [duplicate]
I would like to check if there are lint errors while angular is generating Browser application bundle and fail if there are errors.
Is that possible? I have used demon to create a watch but thats not ...
5
votes
0
answers
10k
views
How to execute postbuild script after all package script events?
The package.json of an Angular library defines the following scripts:
"scripts": {
"build": "node ../../node_modules/@angular/cli/bin/ng build dining",
"watch&...
2
votes
1
answer
9k
views
Failed at the core-js postinstall script error
I am facing the following errors when I try to install node modules in an existing Angular project. I am trying to install the node modules in windows machine(Win32 X64).
> [email protected] ...
1
vote
0
answers
260
views
Angular: Separate scripts and dependencies in package.json
The in package.json file of an angular there is a section for npm scripts and a section for dependencies.
In our project we use parameters for our ng serve command. The values depend on the devs ...
3
votes
1
answer
4k
views
How to make Angular watch multiple libraries for changes and recompile when needed
This question is much the same as Make angular app watch for libraries changes and update itself. But, that question was never successfully answered as applies to the use of multiple libraries. I also ...
0
votes
1
answer
578
views
Perfect way to use variables in package.json [closed]
I have a number of angular environments, like prod, dev and i would like to reuse this information in package.json scripts.
for example I have a profile 'dev` which contains:
export const environment =...
4
votes
1
answer
6k
views
How to run multiple NPM scripts in sequence with watch
I am working on angular 7 application. Below are the scripts in my package.json file to build the application
"scripts": {
"build:all": "npm run build:dev & npm run ...
3
votes
4
answers
6k
views
npm run scripts not working, bur running scripts separately works
I have been trying to run scripts using NPM run scripts. However, it ends up in error.
Package.json
"scripts": {
"ng": "ng",
"start": "ng serve --...