Skip to main content

Notifications

Dynamics 365 Community / Forums / Commerce forum / TS7006: Parameter 'ite...
Commerce forum
Unanswered

TS7006: Parameter 'item' implicitly has an 'any' type in node modules (Microsoft Dynamics Commerce)

Posted on by
Hi experts,
I've a microsoft dynamics commerce project (react+ts). Project was working fine earlier. I've just clone the project from git and it gives me error to upload node version to 18. I updated the node version and also updated all the packages by using following commands
**yarn msdyn365 upgrade-webpack
yarn msdyn365 update-versions module-library
yarn msdyn365 update-versions retail-proxy
yarn msdyn365 update-versions sdk**
i re-installed my node modules by adding the command **yarn**.
but i'm getting errors
**ERRORS:**
ERROR in node_modules/@msdyn365-commerce-modules/checkout/src/modules/checkout/components/get-line-items.tsx:392:77
TS7006: Parameter 'item' implicitly has an 'any' type.
ERROR in node_modules/@msdyn365-commerce-modules/checkout/src/modules/checkout/components/get-line-items.tsx:393:74
TS7006: Parameter 'item' implicitly has an 'any' type.
ERROR in node_modules/@msdyn365-commerce-modules/checkout/src/modules/checkout/components/get-line-items.tsx:402:55
TS2345: Argument of type 'unknown' is not assignable to parameter of type 'CartLine[]'.
ERROR in node_modules/@msdyn365-commerce-modules/order-management/src/common/utilities.ts:131:76
TS7006: Parameter 'item' implicitly has an 'any' type.
ERROR in node_modules/@msdyn365-commerce-modules/order-management/src/common/utilities.ts:132:79
TS7006: Parameter 'item' implicitly has an 'any' type.
ERROR in node_modules/@msdyn365-commerce-modules/order-management/src/common/utilities.ts:133:74
TS7006: Parameter 'item' implicitly has an 'any' type.
ERROR in node_modules/@msdyn365-commerce-modules/order-management/src/common/utilities.ts:135:24
TS7006: Parameter 'item' implicitly has an 'any' type.
ERROR in node_modules/@msdyn365-commerce-modules/order-management/src/common/utilities.ts:151:28
TS2571: Object is of type 'unknown'.

THIS IS THE ISSUE, I'M UNABLE TO CREATE THE PACKAGE OF MY PROJECT BY USING THIS COMMAND **yarn msdyn365 pack**

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,888 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,247 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans