Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/store",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"browser": "src/main.ts",
"polyfills": [
"zone.js",
"src/polyfills.ts"
],
Comment on lines +18 to +22
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

polyfills includes both zone.js and src/polyfills.ts, but src/polyfills.ts already imports zone.js. This results in loading ZoneJS twice (also in the test target), which is unnecessary and can cause subtle runtime issues. Keep only one source of ZoneJS (either remove zone.js from these arrays or remove the ZoneJS import from src/polyfills.ts).

Copilot uses AI. Check for mistakes.
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css"
],
"scripts": []
Expand Down Expand Up @@ -50,12 +54,9 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
"sourceMap": true
}
},
"defaultConfiguration": "production"
Expand All @@ -64,32 +65,36 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "store:build:production"
"buildTarget": "store:build:production"
},
"development": {
"browserTarget": "store:build:development"
"buildTarget": "store:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "store:build"
"buildTarget": "store:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"zone.js",
"zone.js/testing",
"src/polyfills.ts"
],
Comment on lines +85 to +89
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue for the test target: polyfills includes zone.js and src/polyfills.ts (which imports ZoneJS), so ZoneJS is loaded twice during tests. Remove one of them to avoid duplicate patching.

Copilot uses AI. Check for mistakes.
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css"
],
"scripts": []
Expand All @@ -101,4 +106,4 @@
"cli": {
"analytics": false
}
}
}
144 changes: 144 additions & 0 deletions build_app.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
node : Node.js version
v25.7.0 detected.
No linha:1 caractere:1
+ node node_modules/@an
gular/cli/bin/ng.js
build 2>&1 |
Select-Object - ...
+ ~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~
+ CategoryInfo
: NotSpecifi
ed: (Node.js versi
on v25.7.0 detecte
d.:String) [], Rem
oteException
+ FullyQualifiedEr
rorId : NativeComm
andError

Odd numbered Node.js
versions will not
enter LTS status and
should not be used for
production. For more
information, please
see https://nodejs.org/
en/about/previous-relea
ses/.
ÔØ» Building...
Ô£ö Building...
Application bundle generation failed. [1.826 seconds] - 2026-03-04T03:49:44.913Z

Ôû▓ [43;
33m[WARNING[43
;33m]
TypeScript
compiler options
'target' and 'useDefine
ForClassFields' are
set to 'ES2022' and
'false' respectively
by the Angular
CLI.
[plugin
angular-compiler]


tsconfig.app.json:0:0:
 0 Ôöé

ÔòÁ ^

To control ECMA
version and features
use the Browserslist
configuration. For
more information, see 
[4mhttps://angular.dev/
tools/cli/build#configu
ring-browser-compatibil
ity


Ôû▓ [[43;
30mWARNING]
TypeScript
compiler options
'target' and 'useDefine
ForClassFields' are
set to 'ES2022' and
'false' respectively
by the Angular
CLI.
[plugin
angular-compiler]


tsconfig.app.json:0:0:
 0 Ôöé

ÔòÁ ^

To control ECMA
version and features
use the Browserslist
configuration. For
more information, see 
[4mhttps://angular.dev/
tools/cli/build#configu
ring-browser-compatibil
ity


X [41;31
m[ERROR
] TS2307:
Cannot find module '@an
gular/core/primitives/d
i' or its
corresponding type
declarations.
[plugin
angular-compiler]

node_modules/@angul
ar/core/types/_discover
y-chunk.d.ts:12:85:
 12 Ôöé ...s
InjectionToken$1,
NotFound } from '@
angular/core/primitives
/di';
ÔòÁ

~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~


X [[41;97
mERROR]
TS2307: Cannot
find module
'@angular/common/http'
or its corresponding
type declarations.
[plugin
angular-compiler]

node_modules/@angul
ar/platform-browser/typ
es/platform-browser.d.t
s:10:41:
 10 Ôöé
import { HttpTransferCa
cheOptions } from 
'@angular/common/http'
[37m;
ÔòÁ

~~~~~~~~~~
~~~~~~~~~~~~


100 changes: 100 additions & 0 deletions build_err.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
node : Node.js version
v25.7.0 detected.
No linha:1 caractere:1
+ node node_modules/@angula
r/cli/bin/ng.js build 2>&1
| Select-Object - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo
: NotSpecified: (Nod
e.js version v25.7.0 d
etected.:String) [], R
emoteException
+ FullyQualifiedErrorI
d : NativeCommandError

Odd numbered Node.js
versions will not enter
LTS status and should not
be used for production.
For more information,
please see https://nodejs.o
rg/en/about/previous-releas
es/.
- Generating browser
application bundles
(phase: setup)...
 TypeScript
compiler options "target"
and
"useDefineForClassFields"
are set to "ES2022" and
"false" respectively by
the Angular CLI. To
control ECMA version and
features use the
Browserslist
configuration. For more
information, see https://an
gular.dev/tools/cli/build#c
onfiguring-browser-compatib
ility
NOTE: You can set the
"target" to "ES2022" in
the project's tsconfig to
remove this
warning.
Ô£ö Browser
application bundle
generation complete.
Ô£ö Browser
application bundle
generation complete.

Error: node_modules/@a
ngular/core/types/_discover
y-chunk.d.ts:12[0
m:86 -
error
TS2307: Cannot find
module '@angular/core/primi
tives/di' or its
corresponding type
declarations.

12 import {
Injector as Injector$1,
InjectionToken as
InjectionToken$1, NotFound
} from '@angular/core/primi
tives/di';
  


~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@a
ngular/platform-browser/typ
es/platform-browser.d.ts[0
m:10:42
- error
TS2307: Cannot find
module
'@angular/common/http' or
its corresponding type
declarations.

10 import {
HttpTransferCacheOptions }
from
'@angular/common/http';
  


~~~~~~~~~~~~~~~~~~~~~~



Loading
Loading