web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

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

(1) ShareShare
ReportReport
Posted on by 4
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**
I have the same question (0)
  • CU17030547-0 Profile Picture
    5 on at
    TS7006: Parameter 'item' implicitly has an 'any' type in node modules (Microsoft Dynamics Commerce)
    Hi!

    May I ask if this was resolved?
    I'm facing the exact same error after upgrading

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Siv Sagar Profile Picture

Siv Sagar 303 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 173 Super User 2025 Season 2

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 93 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans