Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Commerce forum / Unable to build after ...
Commerce forum
Under review by Community Managers

Under review

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

Unable to build after upgrading to Node 16 +

Posted on by 45

Hi Folks,

Recently I upgraded the node version on local machine to 16.15.0. After installing the updated version I am encountering the following error while running the yarn start command. I have tried deleting the node module, build and yarn.lock files as well but it didn't work.

I would really appreciate the suggestions to resolve these.

**ApplicationInsights:An invalid instrumentation key was provided. There may be resulting telemetry loss [ ' ' ]

\build\webpack:\lib\module-registration.js?44dd:2743
binding.dataActions[actionPath] = undefined;
^
ReferenceError: actionPath is not defined
at Module.registerAllModules (\build\webpack:\lib\module-registration.js?44dd:2743:37)
at Module../node_modules/@msdyn365-commerce/bootloader/entry/bootstrap.js (\build\webpack:\node_modules@msdyn365-commerce\bootloader\entry\bootstrap.js?d994:189:35)**

ERROR in ./lib/module-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/accordion/dist/lib/modules/accordion-item/accordion-item' in 'lib'
@ ./lib/module-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client
ERROR in ./lib/view-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/accordion/dist/lib/modules/accordion-item/accordion-item.view.js' in '\lib'
@ ./lib/view-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client

ERROR in ./lib/module-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/accordion/dist/lib/modules/accordion/accordion' in '\lib'
@ ./lib/module-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client

ERROR in ./lib/view-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/accordion/dist/lib/modules/accordion/accordion.view.js' in '\lib'
@ ./lib/view-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client

ERROR in ./lib/module-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/account-management/dist/lib/modules/aad-generic/aad-generic' in 'lib'
@ ./lib/module-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client

ERROR in ./lib/view-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/account-management/dist/lib/modules/aad-generic/aad-generic.view.js' in '\lib'
@ ./lib/view-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client

ERROR in ./lib/module-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/account-management/dist/lib/modules/account-address-tile/account-address-tile' in '\lib'
@ ./lib/module-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client

ERROR in ./lib/view-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/account-management/dist/lib/modules/account-address-tile/account-address-tile.view.js' in '\lib'
@ ./lib/view-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client

ERROR in ./lib/module-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/account-management/dist/lib/modules/account-customer-balance-tile/account-customer-balance-tile' in '\lib'
@ ./lib/module-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client

ERROR in ./lib/view-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/account-management/dist/lib/modules/account-customer-balance-tile/account-customer-balance-tile.view.js' in '\lib'
@ ./lib/view-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client

ERROR in ./lib/module-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/account-management/dist/lib/modules/account-customer-balance/account-customer-balance' in '\lib'
@ ./lib/module-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client

ERROR in ./lib/view-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/account-management/dist/lib/modules/account-customer-balance/account-customer-balance.view.js' in '\lib'
@ ./lib/view-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client

ERROR in ./lib/module-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/account-management/dist/lib/modules/account-generic-tile/account-generic-tile' in '\lib'
@ ./lib/module-registration.js
@ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
@ multi ./node_modules/error-overlay-webpack-plugin/lib/entry-basic.js ./node_modules/error-overlay-webpack-plugin/lib/entry-devserver.js? ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js webpack-dev-server/client?http://localhost:4001/ ./node_modules/@msdyn365-commerce/bootloader/entry/client

ERROR in ./lib/view-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/account-management/dist/lib/modules/account-generic-tile/account-generic-tile.view.js' in '\lib'
@ ./lib/view-registration.js

Thanks,
Aman

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... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans