Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Commerce forum / Reason for dev depende...
Commerce forum
Suggested answer

Reason for dev dependency on webpack 5

Posted on by 10

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.

Categories:
  • rsudworth Profile Picture
    rsudworth 10 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
    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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans