Note: This article was published on 10/12/2024.
This is a seres of articles about Angular Installation, Upgrading.
- Angular Installation and Environment Setup
- Update Angular For Environment And Project
- Update nx-angular:
- Update nx-Angular from 12 to 17 (1) --- Initial Point
- Update nx-Angular from 12 to 17 (2) --- in a nx environment
- Update nx-Angular from 12 to 17 (3) --- to Latest or Version by Version?
- Update nx-Angular from 12 to 17 (4) --- Debugging (1) --- this article
- Update nx-Angular from 12 to 17 (5) --- Debugging (2)
- Update nx-Angular from 12 to 17 (6) --- .Net updating and Angular updating
Introduction
This article is to discuss some major errors incurred in this upgrading process.
The content of this article:
- Introduction
- Error 1: --- @use --- new way to @import
- Error 2: --- Cannot Resolve'ngx-observable-lifecycle'
- Error 3: --- enabled to enabledNonBlocking
- Error 4: --- error TS1005: '?' expected
- Error 5: --- @import => @use for ag-grid
- Error 6: --- error TS2345: Argument of type partial is not assignable to parameter of type
- Error 7: --- error TS5101: specify compilerOption '"ignoreDeprecations": "5.0"'
Error 1: --- @use --- new way to @import
-
Upgrade to [email protected]
Error:

Solution:

Code Changed:

Error 2: --- Cannot Resolve'ngx-observable-lifecycle'
-
Upgrade to [email protected]
Error:

Solution:

After installation:

Error 3: --- enabled to enabledNonBlocking
-
npx nx migrate [email protected]
Error:

solution:

Error 4: --- error TS1005: '?' expected
-
Upgrade to [email protected]
Error:

Solution:

Fix:

Error 5: --- @import => @use for ag-grid
-
Upgrade to [email protected]
Error:

Solution:
Note: for this topic, there is no reference online, even I searched and read more than 20 articles. The solution is by tesing, hundred of testing. The hint was from Error 1 in this article.

Error 6: --- error TS2345: Argument of type partial is not assignable to parameter of type
-
Upgrade to [email protected]
Error:

Solution:
- error TS2345: Argument of type 'Partial<{ toRoomId: any; toBaseQty: any; toFloorId: any; }>' is not assignable to parameter of type 'CopyLineItemFloorRoomForm'. - Google Search
- javascript - Argument of type partial is not assignable to parameter of type - Stack Overflow
- Argument of type 'Partial' is not assignable to parameter of type 'ErrorObject' · Issue #1859 · ajv-validator/ajv · GitHub
- TypeScript – When a data type is not assignable to itself (TS2345) – Jonathan Gruber (jogruber.de)
The info above from online are almost not useful. The final fix is like this --- get rid of the input parameter:

Second:

Third:

Error 7: --- error TS5101: specify compilerOption '"ignoreDeprecations": "5.0"'
-
Upgrade to [email protected]
Error:

Solutions:

AI Solution:

Fix:


Join the conversation! Your thoughts help the community grow.