Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested answer

Reason for dev dependency on webpack 5

(0) ShareShare
ReportReport
Posted on by

I'm currently upgrading an old D365 ecommerce codebase and noticed that the latest package.json has a dev dependency of "webpack": "^5.42.0". This requirement seems to be causing errors with a couple of 3rd party packages we need to use and our build fails. Looking at the github history, I can see the change was updated in this commit - https://github.com/microsoft/Msdyn365.Commerce.Online/commit/6397405b8130f948c7dacee0eedff957d3fc411e, but there are no further details. How can I find out why this requirement was added and what the effect would be of removing it?

Thanks.

  • rsudworth Profile Picture
    on at
    RE: Reason for dev dependency on webpack 5

    Thank you for responding. The upgrade is from 9.38 to 9.40 and I think it should already have the webpack 5 dev dependency, however I wasn't involved until recently and I think previous upgrades only changed the SDK version and the developer didn't check for other changes in package.json. It sounds like perhaps I could work back through webpack versions to find one that is ok fire both ms commerce and the 3rd party packages. 

  • Suggested answer
    MuraliElangovan Profile Picture
    on at
    RE: Reason for dev dependency on webpack 5

    rsudworth We always had dev dependency on webpack. The dependency would come via bootloader package. What you see in the package.json was added as a resolution because at some stage a newer version of webpack5 was brining in a dependency that was causing build issues.

    Taking a step back, we cut over from webpack 4 to webpack 5 some time ago, making webpack5 as default. What was the version you are upgrading from? Depending on that it could be related to webpack 5 upgrade or some other issue.

    learn.microsoft.com/.../sdk-faq

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,996 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans