TS7006: Parameter 'item' implicitly has an 'any' type in node modules (Microsoft Dynamics Commerce) #331
Unanswered
umarmughal12
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions